types.ModuleType.__loader__

__loader__ The loader which loaded the module. Defaults to None. Changed in version 3.4: Defaults to None. Previously the attribute was optional.

types.ModuleType.__doc__

__doc__ The docstring of the module. Defaults to None.

types.ModuleType

class types.ModuleType(name, doc=None) The type of modules. Constructor takes the name of the module to be created and optionally its docstring. Note Use importlib.util.module_from_spec() to create a new module if you wish to set the various import-controlled attributes. __doc__ The docstring of the module. Defaults to None. __loader__ The loader which loaded the module. Defaults to None. Changed in version 3.4: Defaults to None. Previously the attribute was optional. __name

types.MethodType

types.MethodType The type of methods of user-defined class instances.

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.

types.MappingProxyType.values()

values() Return a new view of the underlying mapping’s values.

types.MappingProxyType.keys()

keys() Return a new view of the underlying mapping’s keys.

types.MappingProxyType.items()

items() Return a new view of the underlying mapping’s items ((key, value) pairs).

types.MappingProxyType.get()

get(key[, default]) Return the value for key if key is in the underlying mapping, else default. If default is not given, it defaults to None, so that this method never raises a KeyError.

types.MappingProxyType.copy()

copy() Return a shallow copy of the underlying mapping.