struct.Struct

class struct.Struct(format) Return a new Struct object which writes and reads binary data according to the format string format. Creating a Struct object once and calling its methods is more efficient than calling the struct functions with the same format since the format string only needs to be compiled once. Compiled Struct objects support the following methods and attributes: pack(v1, v2, ...) Identical to the pack() function, using the compiled format. (len(result) will equal size.)

types.MemberDescriptorType

types.MemberDescriptorType The type of objects defined in extension modules with PyMemberDef, such as datetime.timedelta.days. This type is used as descriptor for simple C data members which use standard conversion functions; it has the same purpose as the property type, but for classes defined in extension modules. CPython implementation detail: In other implementations of Python, this type may be identical to GetSetDescriptorType.

operator.__ilshift__()

operator.__ilshift__(a, b) a = ilshift(a, b) is equivalent to a <<= b.

ctypes._Pointer._type_

_type_ Specifies the type pointed to.

asyncore.dispatcher.handle_expt()

handle_expt() Called when there is out of band (OOB) data for a socket connection. This will almost never happen, as OOB is tenuously supported and rarely used.

cmath.phase()

cmath.phase(x) Return the phase of x (also known as the argument of x), as a float. phase(x) is equivalent to math.atan2(x.imag, x.real). The result lies in the range [-π, π], and the branch cut for this operation lies along the negative real axis, continuous from above. On systems with support for signed zeros (which includes most systems in current use), this means that the sign of the result is the same as the sign of x.imag, even when x.imag is zero: >>> phase(complex(-1.0, 0.0)

doctest.UnexpectedException.exc_info

UnexpectedException.exc_info A tuple containing information about the unexpected exception, as returned by sys.exc_info().

calendar.isleap()

calendar.isleap(year) Returns True if year is a leap year, otherwise False.

dict.popitem()

popitem() Remove and return an arbitrary (key, value) pair from the dictionary. popitem() is useful to destructively iterate over a dictionary, as often used in set algorithms. If the dictionary is empty, calling popitem() raises a KeyError.

shelve.Shelf.close()

Shelf.close() Synchronize and close the persistent dict object. Operations on a closed shelf will fail with a ValueError.