decimal.Decimal.copy_sign()

copy_sign(other, context=None) Return a copy of the first operand with the sign set to be the same as the sign of the second operand. For example: >>> Decimal('2.3').copy_sign(Decimal('-1.5')) Decimal('-2.3') This operation is unaffected by context and is quiet: no flags are changed and no rounding is performed. As an exception, the C version may raise InvalidOperation if the second operand cannot be converted exactly.

codecs.strict_errors()

codecs.strict_errors(exception) Implements the 'strict' error handling: each encoding or decoding error raises a UnicodeError.

smtpd.SMTPChannel.fqdn

fqdn Holds the fully-qualified domain name of the server as returned by socket.getfqdn().

asyncio.DatagramProtocol.datagram_received()

DatagramProtocol.datagram_received(data, addr) Called when a datagram is received. data is a bytes object containing the incoming data. addr is the address of the peer sending the data; the exact format depends on the transport.

inspect.isgetsetdescriptor()

inspect.isgetsetdescriptor(object) Return true if the object is a getset descriptor. CPython implementation detail: getsets are attributes defined in extension modules via PyGetSetDef structures. For Python implementations without such types, this method will always return False.

tkinter.ttk.Widget.state()

state(statespec=None) Modify or inquire widget state. If statespec is specified, sets the widget state according to it and return a new statespec indicating which flags were changed. If statespec is not specified, returns the currently-enabled state flags.

ipaddress.IPv6Network.with_netmask

with_netmask

gc.get_stats()

gc.get_stats() Return a list of three per-generation dictionaries containing collection statistics since interpreter start. The number of keys may change in the future, but currently each dictionary will contain the following items: collections is the number of times this generation was collected; collected is the total number of objects collected inside this generation; uncollectable is the total number of objects which were found to be uncollectable (and were therefore moved to the garb

mailbox.MH.unlock()

unlock() Three locking mechanisms are used—dot locking and, if available, the flock() and lockf() system calls. For MH mailboxes, locking the mailbox means locking the .mh_sequences file and, only for the duration of any operations that affect them, locking individual message files.

logging.Logger.exception()

Logger.exception(msg, *args, **kwargs) Logs a message with level ERROR on this logger. The arguments are interpreted as for debug(). Exception info is added to the logging message. This method should only be called from an exception handler.