tarfile.TarInfo.ischr()

TarInfo.ischr() Return True if it is a character device.

xmlrpc.server.DocXMLRPCServer.set_server_name()

DocXMLRPCServer.set_server_name(server_name) Set the name used in the generated HTML documentation. This name will appear at the top of the generated documentation inside a “h1” element.

itertools.count()

itertools.count(start=0, step=1) Make an iterator that returns evenly spaced values starting with number start. Often used as an argument to map() to generate consecutive data points. Also, used with zip() to add sequence numbers. Roughly equivalent to: def count(start=0, step=1): # count(10) --> 10 11 12 13 14 ... # count(2.5, 0.5) -> 2.5 3.0 3.5 ... n = start while True: yield n n += step When counting with floating point numbers, better accuracy can

curses.window.getkey()

window.getkey([y, x]) Get a character, returning a string instead of an integer, as getch() does. Function keys, keypad keys and other special keys return a multibyte string containing the key name. In no-delay mode, an exception is raised if there is no input.

shutil.get_unpack_formats()

shutil.get_unpack_formats() Return a list of all registered formats for unpacking. Each element of the returned sequence is a tuple (name, extensions, description). By default shutil provides these formats: gztar: gzip’ed tar-file bztar: bzip2’ed tar-file (if the bz2 module is available.) xztar: xz’ed tar-file (if the lzma module is available.) tar: uncompressed tar file zip: ZIP file You can register new formats or provide your own unpacker for any existing formats, by using register

test.support.temp_umask()

test.support.temp_umask(umask) A context manager that temporarily sets the process umask.

socket.getprotobyname()

socket.getprotobyname(protocolname) Translate an Internet protocol name (for example, 'icmp') to a constant suitable for passing as the (optional) third argument to the socket() function. This is usually only needed for sockets opened in “raw” mode (SOCK_RAW); for the normal socket modes, the correct protocol is chosen automatically if the protocol is omitted or zero.

email.message.EmailMessage.iter_parts()

iter_parts() Return an iterator over all of the immediate sub-parts of the message, which will be empty for a non-multipart. (See also walk().)

asyncio.AbstractEventLoop.call_later()

AbstractEventLoop.call_later(delay, callback, *args) Arrange for the callback to be called after the given delay seconds (either an int or float). An instance of asyncio.Handle is returned, which can be used to cancel the callback. callback will be called exactly once per call to call_later(). If two callbacks are scheduled for exactly the same time, it is undefined which will be called first. The optional positional args will be passed to the callback when it is called. If you want the call

pickle.Pickler.dispatch_table

dispatch_table A pickler object’s dispatch table is a registry of reduction functions of the kind which can be declared using copyreg.pickle(). It is a mapping whose keys are classes and whose values are reduction functions. A reduction function takes a single argument of the associated class and should conform to the same interface as a __reduce__() method. By default, a pickler object will not have a dispatch_table attribute, and it will instead use the global dispatch table managed by the