socket.inet_ntoa()

socket.inet_ntoa(packed_ip) Convert a 32-bit packed IPv4 address (a bytes-like object four bytes in length) to its standard dotted-quad string representation (for example, ‘123.45.67.89’). This is useful when conversing with a program that uses the standard C library and needs objects of type struct in_addr, which is the C type for the 32-bit packed binary data this function takes as an argument. If the byte sequence passed to this function is not exactly 4 bytes in length, OSError will be r

turtle.turtles()

turtle.turtles() Return the list of turtles on the screen. >>> for turtle in screen.turtles(): ... turtle.color("red")

urllib.parse.SplitResult

class urllib.parse.SplitResult(scheme, netloc, path, query, fragment) Concrete class for urlsplit() results containing str data. The encode() method returns a SplitResultBytes instance.

email.header.decode_header()

email.header.decode_header(header) Decode a message header value without converting the character set. The header value is in header. This function returns a list of (decoded_string, charset) pairs containing each of the decoded parts of the header. charset is None for non-encoded parts of the header, otherwise a lower case string containing the name of the character set specified in the encoded string. Here’s an example: >>> from email.header import decode_header >>> decod

inspect.getsource()

inspect.getsource(object) Return the text of the source code for an object. The argument may be a module, class, method, function, traceback, frame, or code object. The source code is returned as a single string. An OSError is raised if the source code cannot be retrieved. Changed in version 3.3: OSError is raised instead of IOError, now an alias of the former.

datetime.datetime.__format__()

datetime.__format__(format) Same as datetime.strftime(). This makes it possible to specify a format string for a datetime object when using str.format(). For a complete list of formatting directives, see strftime() and strptime() Behavior.

email.mime.audio.MIMEAudio

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

subprocess.Popen.poll()

Popen.poll() Check if child process has terminated. Set and return returncode attribute.

io.BufferedIOBase.readinto1()

readinto1(b) Read bytes into a pre-allocated, writable bytes-like object b, using at most one call to the underlying raw stream’s read() (or readinto()) method. Return the number of bytes read. A BlockingIOError is raised if the underlying raw stream is in non blocking-mode, and has no data available at the moment. New in version 3.5.

tkinter.ttk.Style.lookup()

lookup(style, option, state=None, default=None) Returns the value specified for option in style. If state is specified, it is expected to be a sequence of one or more states. If the default argument is set, it is used as a fallback value in case no specification for option is found. To check what font a Button uses by default: from tkinter import ttk print(ttk.Style().lookup("TButton", "font"))