Liking cljdoc? Tell your friends :D

libpython-clj.jna.concrete.module


PyModule_AddFunctionsclj

(PyModule_AddFunctions module functions)

Add the functions from the NULL terminated functions array to module. Refer to the PyMethodDef documentation for details on individual entries (due to the lack of a shared module namespace, module level “functions” implemented in C typically receive the module as their first parameter, making them similar to instance methods on Python classes). This function is called automatically when creating a module from PyModuleDef, using either PyModule_Create or PyModule_FromDefAndSpec.

Add the functions from the NULL terminated functions array to module. Refer to the
PyMethodDef documentation for details on individual entries (due to the lack of a
shared module namespace, module level “functions” implemented in C typically receive
the module as their first parameter, making them similar to instance methods on Python
classes). This function is called automatically when creating a module from
PyModuleDef, using either PyModule_Create or PyModule_FromDefAndSpec.
sourceraw docstring

PyModule_AddIntConstantclj

(PyModule_AddIntConstant module name value)

Add an integer constant to module as name. This convenience function can be used from the module’s initialization function. Return -1 on error, 0 on success.

Add an integer constant to module as name. This convenience function can be used from
the module’s initialization function. Return -1 on error, 0 on success.
sourceraw docstring

PyModule_AddObjectclj

(PyModule_AddObject module name value)

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. Return -1 on error, 0 on success.

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. Return -1
on error, 0 on success.
sourceraw docstring

PyModule_AddStringConstantclj

(PyModule_AddStringConstant module name value)

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. Return -1 on error, 0 on success.

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. Return
-1 on error, 0 on success.
sourceraw docstring

PyModule_Checkclj

(PyModule_Check p)

Return true if p is a module object, or a subtype of a module object.

Return true if p is a module object, or a subtype of a module object.
sourceraw docstring

PyModule_GetDefclj

(PyModule_GetDef module)

Return a pointer to the PyModuleDef struct from which the module was created, or NULL if the module wasn’t created from a definition.

Return a pointer to the PyModuleDef struct from which the module was created, or NULL
if the module wasn’t created from a definition.
sourceraw docstring

PyModule_GetDictclj

(PyModule_GetDict module)

Return value: Borrowed reference.

Return the dictionary object that implements module’s namespace; this object is the same as the dict attribute of the module object. If module is not a module object (or a subtype of a module object), SystemError is raised and NULL is returned.

It is recommended extensions use other PyModule_() and PyObject_() functions rather than directly manipulate a module’s dict.

Return value: Borrowed reference.

Return the dictionary object that implements module’s namespace; this object is the
same as the __dict__ attribute of the module object. If module is not a module
object (or a subtype of a module object), SystemError is raised and NULL is
returned.

It is recommended extensions use other PyModule_*() and PyObject_*() functions
rather than directly manipulate a module’s __dict__.
sourceraw docstring

PyModule_GetNameObjectclj

(PyModule_GetNameObject module)

Return value: New reference.

Return module’s name value. If the module does not provide one, or if it is not a string, SystemError is raised and NULL is returned.

New in version 3.3.

Return value: New reference.

Return module’s __name__ value. If the module does not provide one, or if it is not a
string, SystemError is raised and NULL is returned.

New in version 3.3.
sourceraw docstring

PyModule_GetStateclj

(PyModule_GetState module)

Return the “state” of the module, that is, a pointer to the block of memory allocated at module creation time, or NULL. See PyModuleDef.m_size.

Return the “state” of the module, that is, a pointer to the block of memory allocated
at module creation time, or NULL. See PyModuleDef.m_size.
sourceraw docstring

PyModule_Newclj

(PyModule_New name)

Return value: New reference.

Return a new module object with the name attribute set to name. The module’s name, doc, package, and loader attributes are filled in (all but name are set to None); the caller is responsible for providing a file attribute.

New in version 3.3.

Changed in version 3.4: package and loader are set to None.

Return value: New reference.

Return a new module object with the __name__ attribute set to name. The module’s
__name__, __doc__, __package__, and __loader__ attributes are filled in (all but
__name__ are set to None); the caller is responsible for providing a __file__
attribute.

New in version 3.3.

Changed in version 3.4: __package__ and __loader__ are set to None.
sourceraw docstring

PyModule_SetDocStringclj

(PyModule_SetDocString module docstring)

Set the docstring for module to docstring. This function is called automatically when creating a module from PyModuleDef, using either PyModule_Create or PyModule_FromDefAndSpec.

New in version 3.5.

Set the docstring for module to docstring. This function is called automatically when
creating a module from PyModuleDef, using either PyModule_Create or
PyModule_FromDefAndSpec.

 New in version 3.5.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close