inspect.Parameter.empty

empty A special class-level marker to specify absence of default values and annotations.

filecmp.dircmp.left

left The directory a.

asyncio.AbstractEventLoop.is_closed()

AbstractEventLoop.is_closed() Returns True if the event loop was closed. New in version 3.4.2.

os.mkdir()

os.mkdir(path, mode=0o777, *, dir_fd=None) Create a directory named path with numeric mode mode. If the directory already exists, FileExistsError is raised. On some systems, mode is ignored. Where it is used, the current umask value is first masked out. If bits other than the last 9 (i.e. the last 3 digits of the octal representation of the mode) are set, their meaning is platform-dependent. On some platforms, they are ignored and you should call chmod() explicitly to set them. This function

inspect.getgeneratorlocals()

inspect.getgeneratorlocals(generator) Get the mapping of live local variables in generator to their current values. A dictionary is returned that maps from variable names to values. This is the equivalent of calling locals() in the body of the generator, and all the same caveats apply. If generator is a generator with no currently associated frame, then an empty dictionary is returned. TypeError is raised if generator is not a Python generator object. CPython implementation detail: This fun

os.isatty()

os.isatty(fd) Return True if the file descriptor fd is open and connected to a tty(-like) device, else False.

os.lchflags()

os.lchflags(path, flags) Set the flags of path to the numeric flags, like chflags(), but do not follow symbolic links. As of Python 3.3, this is equivalent to os.chflags(path, flags, follow_symlinks=False). Availability: Unix.

object.__setstate__()

object.__setstate__(state) Upon unpickling, if the class defines __setstate__(), it is called with the unpickled state. In that case, there is no requirement for the state object to be a dictionary. Otherwise, the pickled state must be a dictionary and its items are assigned to the new instance’s dictionary. Note If __getstate__() returns a false value, the __setstate__() method will not be called upon unpickling.

asyncio.AbstractEventLoopPolicy.set_event_loop()

set_event_loop(loop) Set the event loop for the current context to loop.

typing.Optional

class typing.Optional Optional type. Optional[X] is equivalent to Union[X, type(None)]. Note that this is not the same concept as an optional argument, which is one that has a default. An optional argument with a default needn’t use the Optional qualifier on its type annotation (although it is inferred if the default is None). A mandatory argument may still have an Optional type if an explicit value of None is allowed.