class Objects, values and types CPython implementation detail: For CPython, The standard type hierarchy User-defined functions __doc__ The function’s documentation string, or None if unavailable; not inherited by subclasses Writable __name__ The function’s name Writable __qualname__ The function’s qualified name New in version 3.3. Writable __module__ The name of the module the function was defined in, or None if unavailable. Writable __defaults__ A tuple containing default argument values for those arguments that have defaults, or None if no arguments have a default value Writable __code__ The code object representing the compiled function body. Writable __globals__ A reference to the dictionary that holds the function’s global variables — the global namespace of the module in which the function was defined. Read-only __dict__ The namespace supporting arbitrary function attributes. Writable __closure__ None or a tuple of cells that contain bindings for