platform.python_implementation()

platform.python_implementation() Returns a string identifying the Python implementation. Possible return values are: ‘CPython’, ‘IronPython’, ‘Jython’, ‘PyPy’.

mimetypes.init()

mimetypes.init(files=None) Initialize the internal data structures. If given, files must be a sequence of file names which should be used to augment the default type map. If omitted, the file names to use are taken from knownfiles; on Windows, the current registry settings are loaded. Each file named in files or knownfiles takes precedence over those named before it. Calling init() repeatedly is allowed. Specifying an empty list for files will prevent the system defaults from being applied:

email.contentmanager.raw_data_manager

email.contentmanager.raw_data_manager This content manager provides only a minimum interface beyond that provided by Message itself: it deals only with text, raw byte strings, and Message objects. Nevertheless, it provides significant advantages compared to the base API: get_content on a text part will return a unicode string without the application needing to manually decode it, set_content provides a rich set of options for controlling the headers added to a part and controlling the conten

http.cookies.BaseCookie.value_decode()

BaseCookie.value_decode(val) Return a decoded value from a string representation. Return value can be any type. This method does nothing in BaseCookie — it exists so it can be overridden.

logging.handlers.RotatingFileHandler.emit()

emit(record) Outputs the record to the file, catering for rollover as described previously.

curses.reset_prog_mode()

curses.reset_prog_mode() Restore the terminal to “program” mode, as previously saved by def_prog_mode().

calendar.HTMLCalendar.formatyear()

formatyear(theyear, width=3) Return a year’s calendar as an HTML table. width (defaulting to 3) specifies the number of months per row.

operator.delitem()

operator.delitem(a, b) operator.__delitem__(a, b) Remove the value of a at index b.

email.message.Message.set_payload()

set_payload(payload, charset=None) Set the entire message object’s payload to payload. It is the client’s responsibility to ensure the payload invariants. Optional charset sets the message’s default character set; see set_charset() for details.

pathlib.Path.rename()

Path.rename(target) Rename this file or directory to the given target. On Unix, if target exists and is a file, it will be replaced silently if the user has permission. target can be either a string or another path object: >>> p = Path('foo') >>> p.open('w').write('some text') 9 >>> target = Path('bar') >>> p.rename(target) >>> target.open().read() 'some text'