pathlib.PurePath.parts

PurePath.parts A tuple giving access to the path’s various components: >>> p = PurePath('/usr/bin/python3') >>> p.parts ('/', 'usr', 'bin', 'python3') >>> p = PureWindowsPath('c:/Program Files/PSF') >>> p.parts ('c:\\', 'Program Files', 'PSF') (note how the drive and local root are regrouped in a single part)

xml.dom.DocumentType.entities

DocumentType.entities This is a NamedNodeMap giving the definitions of external entities. For entity names defined more than once, only the first definition is provided (others are ignored as required by the XML recommendation). This may be None if the information is not provided by the parser, or if no entities are defined.

pathlib.PurePath.relative_to()

PurePath.relative_to(*other) Compute a version of this path relative to the path represented by other. If it’s impossible, ValueError is raised: >>> p = PurePosixPath('/etc/passwd') >>> p.relative_to('/') PurePosixPath('etc/passwd') >>> p.relative_to('/etc') PurePosixPath('passwd') >>> p.relative_to('/usr') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "pathlib.py", line 694, in relative_to .format(str(self

mailbox.FormatError

exception mailbox.FormatError Raised when the data in a file cannot be parsed, such as when an MH instance attempts to read a corrupted .mh_sequences file.

pathlib.Path.is_dir()

Path.is_dir() Return True if the path points to a directory (or a symbolic link pointing to a directory), False if it points to another kind of file. False is also returned if the path doesn’t exist or is a broken symlink; other errors (such as permission errors) are propagated.

importlib.machinery.SourcelessFileLoader.is_package()

is_package(fullname) Determines if the module is a package based on path.

os.sched_getaffinity()

os.sched_getaffinity(pid) Return the set of CPUs the process with PID pid (or the current process if zero) is restricted to.

csv.register_dialect()

csv.register_dialect(name[, dialect[, **fmtparams]]) Associate dialect with name. name must be a string. The dialect can be specified either by passing a sub-class of Dialect, or by fmtparams keyword arguments, or both, with keyword arguments overriding parameters of the dialect. For full details about the dialect and formatting parameters, see section Dialects and Formatting Parameters.

mmap.mmap.move()

move(dest, src, count) Copy the count bytes starting at offset src to the destination index dest. If the mmap was created with ACCESS_READ, then calls to move will raise a TypeError exception.

telnetlib.Telnet.fileno()

Telnet.fileno() Return the file descriptor of the socket object used internally.