Return a new module object with the __name__ attribute set
to name. Only the module's __doc__ and
__name__ attributes are filled in; the caller is
responsible for providing a __file__ attribute.
Return the dictionary object that implements module's
namespace; this object is the same as the __dict__
attribute of the module object. This function never fails.
Return the name of the file from which module was loaded using
module's __file__ attribute. If this is not defined,
or if it is not a string, raise SystemError and return
NULL.
Add an object to module as name. This is a convenience
function which can be used from the module's initialization
function. This steals a reference to value. Returns
-1 on error, 0 on success.
New in version 2.0.
Add an integer constant to module as name. This
convenience function can be used from the module's initialization
function. Returns -1 on error, 0 on success.
New in version 2.0.
Add a string constant to module as name. This
convenience function can be used from the module's initialization
function. The string value must be null-terminated. Returns
-1 on error, 0 on success.
New in version 2.0.