platform.dist()

platform.dist(distname='', version='', id='', supported_dists=('SuSE', 'debian', 'redhat', 'mandrake', ...)) This is another name for linux_distribution(). Deprecated since version 3.5, will be removed in version 3.7.

re.match.lastindex

match.lastindex The integer index of the last matched capturing group, or None if no group was matched at all. For example, the expressions (a)b, ((a)(b)), and ((ab)) will have lastindex == 1 if applied to the string 'ab', while the expression (a)(b) will have lastindex == 2, if applied to the same string.

ipaddress.IPv6Network.with_hostmask

with_hostmask

pprint.isrecursive()

pprint.isrecursive(object) Determine if object requires a recursive representation.

reprlib.Repr.maxset

Repr.maxset Repr.maxfrozenset Repr.maxdeque Repr.maxarray Limits on the number of entries represented for the named object type. The default is 4 for maxdict, 5 for maxarray, and 6 for the others.

ossaudiodev.oss_audio_device.bufsize()

oss_audio_device.bufsize() Returns the size of the hardware buffer, in samples.

ftplib.FTP.rmd()

FTP.rmd(dirname) Remove the directory named dirname on the server.

wsgiref.handlers.BaseHandler.error_body

error_body The error response body. This should be an HTTP response body bytestring. It defaults to the plain text, “A server error occurred. Please contact the administrator.”

XML Processing Modules

Source code: Lib/xml/ Python’s interfaces for processing XML are grouped in the xml package. Warning The XML modules are not secure against erroneous or maliciously constructed data. If you need to parse untrusted or unauthenticated data see the XML vulnerabilities and The defusedxml and defusedexpat Packages sections. It is important to note that modules in the xml package require that there be at least one SAX-compliant XML parser available. The Expat parser is included with Python, so the

ipaddress.IPv4Network

class ipaddress.IPv4Network(address, strict=True) Construct an IPv4 network definition. address can be one of the following: A string consisting of an IP address and an optional mask, separated by a slash (/). The IP address is the network address, and the mask can be either a single number, which means it’s a prefix, or a string representation of an IPv4 address. If it’s the latter, the mask is interpreted as a net mask if it starts with a non-zero field, or as a host mask if it starts wit