asyncio.QueueEmpty

exception asyncio.QueueEmpty Exception raised when the get_nowait() method is called on a Queue object which is empty.

logging.handlers.QueueHandler.prepare()

prepare(record) Prepares a record for queuing. The object returned by this method is enqueued. The base implementation formats the record to merge the message and arguments, and removes unpickleable items from the record in-place. You might want to override this method if you want to convert the record to a dict or JSON string, or send a modified copy of the record while leaving the original intact.

codecs.IncrementalEncoder.setstate()

IncrementalEncoder.setstate(state) Set the state of the encoder to state. state must be an encoder state returned by getstate().

curses.window.syncok()

window.syncok(flag) If called with flag set to True, then syncup() is called automatically whenever there is a change in the window.

configparser.ConfigParser.set()

set(section, option, value) If the given section exists, set the given option to the specified value; otherwise raise NoSectionError. option and value must be strings; if not, TypeError is raised.

ssl.SSLContext.set_ciphers()

SSLContext.set_ciphers(ciphers) Set the available ciphers for sockets created with this context. It should be a string in the OpenSSL cipher list format. If no cipher can be selected (because compile-time options or other configuration forbids use of all the specified ciphers), an SSLError will be raised. Note when connected, the SSLSocket.cipher() method of SSL sockets will give the currently selected cipher.

audioop.ratecv()

audioop.ratecv(fragment, width, nchannels, inrate, outrate, state[, weightA[, weightB]]) Convert the frame rate of the input fragment. state is a tuple containing the state of the converter. The converter returns a tuple (newfragment, newstate), and newstate should be passed to the next call of ratecv(). The initial call should pass None as the state. The weightA and weightB arguments are parameters for a simple digital filter and default to 1 and 0 respectively.

plistlib.loads()

plistlib.loads(data, *, fmt=None, use_builtin_types=True, dict_type=dict) Load a plist from a bytes object. See load() for an explanation of the keyword arguments. New in version 3.4.

email.mime.image.MIMEImage

class email.mime.image.MIMEImage(_imagedata, _subtype=None, _encoder=email.encoders.encode_base64, **_params) Module: email.mime.image A subclass of MIMENonMultipart, the MIMEImage class is used to create MIME message objects of major type image. _imagedata is a string containing the raw image data. If this data can be decoded by the standard Python module imghdr, then the subtype will be automatically included in the Content-Type header. Otherwise you can explicitly specify the image subtyp

socket.CMSG_LEN()

socket.CMSG_LEN(length) Return the total length, without trailing padding, of an ancillary data item with associated data of the given length. This value can often be used as the buffer size for recvmsg() to receive a single item of ancillary data, but RFC 3542 requires portable applications to use CMSG_SPACE() and thus include space for padding, even when the item will be the last in the buffer. Raises OverflowError if length is outside the permissible range of values. Availability: most Un