pathlib.Path.expanduser()

Path.expanduser() Return a new path with expanded ~ and ~user constructs, as returned by os.path.expanduser(): >>> p = PosixPath('~/films/Monty Python') >>> p.expanduser() PosixPath('/home/eric/films/Monty Python') New in version 3.5.

mailbox.BabylMessage.set_labels()

set_labels(labels) Set the list of labels on the message to labels.

string.Formatter.format()

format(format_string, *args, **kwargs) The primary API method. It takes a format string and an arbitrary set of positional and keyword arguments. It is just a wrapper that calls vformat(). Deprecated since version 3.5: Passing a format string as keyword argument format_string has been deprecated.

asyncio.Future.result()

result() Return the result this future represents. If the future has been cancelled, raises CancelledError. If the future’s result isn’t yet available, raises InvalidStateError. If the future is done and has an exception set, this exception is raised.

unittest.TestCase.run()

run(result=None) Run the test, collecting the result into the TestResult object passed as result. If result is omitted or None, a temporary result object is created (by calling the defaultTestResult() method) and used. The result object is returned to run()‘s caller. The same effect may be had by simply calling the TestCase instance. Changed in version 3.3: Previous versions of run did not return the result. Neither did calling an instance.

os.sep

os.sep The character used by the operating system to separate pathname components. This is '/' for POSIX and '\\' for Windows. Note that knowing this is not sufficient to be able to parse or concatenate pathnames — use os.path.split() and os.path.join() — but it is occasionally useful. Also available via os.path.

asyncio.open_unix_connection()

coroutine asyncio.open_unix_connection(path=None, *, loop=None, limit=None, **kwds) A wrapper for create_unix_connection() returning a (reader, writer) pair. See open_connection() for information about return value and other details. This function is a coroutine. Availability: UNIX.

bytearray.isalpha()

bytearray.isalpha() Return true if all bytes in the sequence are alphabetic ASCII characters and the sequence is not empty, false otherwise. Alphabetic ASCII characters are those byte values in the sequence b'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'. For example: >>> b'ABCabc'.isalpha() True >>> b'ABCabc1'.isalpha() False

msvcrt.getche()

msvcrt.getche() Similar to getch(), but the keypress will be echoed if it represents a printable character.

multiprocessing.Condition

class multiprocessing.Condition([lock]) A condition variable: an alias for threading.Condition. If lock is specified then it should be a Lock or RLock object from multiprocessing. Changed in version 3.3: The wait_for() method was added.