importlib.machinery.ExtensionFileLoader.create_module()

create_module(spec) Creates the module object from the given specification in accordance with PEP 489. New in version 3.5.

asynchat.async_chat.set_terminator()

async_chat.set_terminator(term) Sets the terminating condition to be recognized on the channel. term may be any of three types of value, corresponding to three different ways to handle incoming protocol data. term Description string Will call found_terminator() when the string is found in the input stream integer Will call found_terminator() when the indicated number of characters have been received None The channel continues to collect data forever Note that any data following the termina

memoryview.nbytes

nbytes nbytes == product(shape) * itemsize == len(m.tobytes()). This is the amount of space in bytes that the array would use in a contiguous representation. It is not necessarily equal to len(m): >>> import array >>> a = array.array('i', [1,2,3,4,5]) >>> m = memoryview(a) >>> len(m) 5 >>> m.nbytes 20 >>> y = m[::2] >>> len(y) 3 >>> y.nbytes 12 >>> len(y.tobytes()) 12 Multi-dimensional arrays: >>> impo

asyncio.StreamReader

class asyncio.StreamReader(limit=None, loop=None) This class is not thread safe. exception() Get the exception. feed_eof() Acknowledge the EOF. feed_data(data) Feed data bytes in the internal buffer. Any operations waiting for the data will be resumed. set_exception(exc) Set the exception. set_transport(transport) Set the transport. coroutine read(n=-1) Read up to n bytes. If n is not provided, or set to -1, read until EOF and return all read bytes. If the EO

turtle.TurtleScreen

class turtle.TurtleScreen(cv) Parameters: cv – a tkinter.Canvas Provides screen oriented methods like setbg() etc. that are described above.

str.translate()

str.translate(table) Return a copy of the string in which each character has been mapped through the given translation table. The table must be an object that implements indexing via __getitem__(), typically a mapping or sequence. When indexed by a Unicode ordinal (an integer), the table object can do any of the following: return a Unicode ordinal or a string, to map the character to one or more other characters; return None, to delete the character from the return string; or raise a LookupE

bytearray.lstrip()

bytearray.lstrip([chars]) Return a copy of the sequence with specified leading bytes removed. The chars argument is a binary sequence specifying the set of byte values to be removed - the name refers to the fact this method is usually used with ASCII characters. If omitted or None, the chars argument defaults to removing ASCII whitespace. The chars argument is not a prefix; rather, all combinations of its values are stripped: >>> b' spacious '.lstrip() b'spacious ' >>>

bytes.swapcase()

bytes.swapcase() bytearray.swapcase() Return a copy of the sequence with all the lowercase ASCII characters converted to their corresponding uppercase counterpart and vice-versa. For example: >>> b'Hello World'.swapcase() b'hELLO wORLD' Lowercase ASCII characters are those byte values in the sequence b'abcdefghijklmnopqrstuvwxyz'. Uppercase ASCII characters are those byte values in the sequence b'ABCDEFGHIJKLMNOPQRSTUVWXYZ'. Unlike str.swapcase(), it is always the case that bin.swap

xml.sax.xmlreader.IncrementalParser

class xml.sax.xmlreader.IncrementalParser In some cases, it is desirable not to parse an input source at once, but to feed chunks of the document as they get available. Note that the reader will normally not read the entire file, but read it in chunks as well; still parse() won’t return until the entire document is processed. So these interfaces should be used if the blocking behaviour of parse() is not desirable. When the parser is instantiated it is ready to begin accepting data from the f

xml.dom.pulldom.DOMEventStream.reset()

reset()