Signal raised after class creation. The sender is the superclass (in case of multiple superclasses, the first superclass). The arguments are (new_class_name, bases, new_attrs, post_funcs, early_funcs). new_attrs is a dictionary and may be modified (but new_class_name and bases are immutable). post_funcs is an initially-empty list that can have callbacks appended to it.

Note: at the time this event is called, the new class has not yet been created. The functions in post_funcs will be called after the class is created, with the single arguments of (new_class). Also, early_funcs will be called at the soonest possible time after class creation (post_funcs is called after the class's __classinit__).


f __sizeof__(...) ...

__sizeof__() -> int size of object in memory, in bytes

f __format__(...) ...

default object formatter

f __subclasshook__(...) ...

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

f __init__(...) ...

x.__init__(...) initializes x; see help(type(x)) for signature

See the source for more information.