sys.gettrace()

sys.gettrace() Get the trace function as set by settrace(). CPython implementation detail: The gettrace() function is intended only for implementing debuggers, profilers, coverage tools and the like. Its behavior is part of the implementation platform, rather than part of the language definition, and thus may not be available in all Python implementations.

socket.socket.connect_ex()

socket.connect_ex(address) Like connect(address), but return an error indicator instead of raising an exception for errors returned by the C-level connect() call (other problems, such as “host not found,” can still raise exceptions). The error indicator is 0 if the operation succeeded, otherwise the value of the errno variable. This is useful to support, for example, asynchronous connects.

gettext.install()

gettext.install(domain, localedir=None, codeset=None, names=None) This installs the function _() in Python’s builtins namespace, based on domain, localedir, and codeset which are passed to the function translation(). For the names parameter, please see the description of the translation object’s install() method. As seen below, you usually mark the strings in your application that are candidates for translation, by wrapping them in a call to the _() function, like this: print(_('This string

winreg.PyHKEY.__exit__()

PyHKEY.__exit__(*exc_info) The HKEY object implements __enter__() and __exit__() and thus supports the context protocol for the with statement: with OpenKey(HKEY_LOCAL_MACHINE, "foo") as key: ... # work with key will automatically close key when control leaves the with block.

tokenize.TokenError

exception tokenize.TokenError Raised when either a docstring or expression that may be split over several lines is not completed anywhere in the file, for example: """Beginning of docstring or: [1, 2, 3

ctypes.c_char_p

class ctypes.c_char_p Represents the C char * datatype when it points to a zero-terminated string. For a general character pointer that may also point to binary data, POINTER(c_char) must be used. The constructor accepts an integer address, or a bytes object.

smtplib.SMTP.has_extn()

SMTP.has_extn(name) Return True if name is in the set of SMTP service extensions returned by the server, False otherwise. Case is ignored.

ipaddress.IPv6Address.ipv4_mapped

ipv4_mapped For addresses that appear to be IPv4 mapped addresses (starting with ::FFFF/96), this property will report the embedded IPv4 address. For any other address, this property will be None.

xml.sax.xmlreader.XMLReader.setErrorHandler()

XMLReader.setErrorHandler(handler) Set the current error handler. If no ErrorHandler is set, errors will be raised as exceptions, and warnings will be printed.

msilib.Control

class msilib.Control(dlg, name) Base class of the dialog controls. dlg is the dialog object the control belongs to, and name is the control’s name. event(event, argument, condition=1, ordering=None) Make an entry into the ControlEvent table for this control. mapping(event, attribute) Make an entry into the EventMapping table for this control. condition(action, condition) Make an entry into the ControlCondition table for this control.