Liking cljdoc? Tell your friends :D

libpython-clj.jna.interpreter


get-type-nameclj

(get-type-name type-pyobj)
source

lookup-type-symbolsclj

(lookup-type-symbols)

Transform the static type-symbol-table map into a map of actual long pointer addresses to {:typename :type-symbol-name}

Transform the static type-symbol-table map into a map of actual long pointer addresses to
{:typename :type-symbol-name}
sourceraw docstring

Py_FinalizeExclj

(Py_FinalizeEx)

Undo all initializations made by Py_Initialize() and subsequent use of Python/C API functions, and destroy all sub-interpreters (see Py_NewInterpreter() below) that were created and not yet destroyed since the last call to Py_Initialize(). Ideally, this frees all memory allocated by the Python interpreter. This is a no-op when called for a second time (without calling Py_Initialize() again first). There is no return value; errors during finalization are ignored.

Undo all initializations made by Py_Initialize() and subsequent use of Python/C API
functions, and destroy all sub-interpreters (see Py_NewInterpreter() below) that were
created and not yet destroyed since the last call to Py_Initialize(). Ideally, this
frees all memory allocated by the Python interpreter. This is a no-op when called for
a second time (without calling Py_Initialize() again first). There is no return value;
errors during finalization are ignored.
sourceraw docstring

Py_InitializeExclj

(Py_InitializeEx initsigs)

This function works like Py_Initialize() if initsigs is 1. If initsigs is 0, it skips initialization registration of signal handlers, which might be useful when Python is embedded.

This function works like Py_Initialize() if initsigs is 1. If initsigs is 0, it skips
initialization registration of signal handlers, which might be useful when Python is
embedded.
sourceraw docstring

Py_IsInitializedclj

(Py_IsInitialized)

Return true (nonzero) when the Python interpreter has been initialized, false (zero) if not. After Py_Finalize() is called, this returns false until Py_Initialize() is called again.

Return true (nonzero) when the Python interpreter has been initialized, false (zero)
if not. After Py_Finalize() is called, this returns false until Py_Initialize() is
called again.
sourceraw docstring

Py_Noneclj

(Py_None)
source

Py_NotImplementedclj

(Py_NotImplemented)
source

PyEval_RestoreThreadclj

(PyEval_RestoreThread tstate)

Acquire the global interpreter lock (if it has been created and thread support is enabled) and set the thread state to tstate, which must not be NULL. If the lock has been created, the current thread must not have acquired it, otherwise deadlock ensues.

Note

Calling this function from a thread when the runtime is finalizing will terminate the thread, even if the thread was not created by Python. You can use _Py_IsFinalizing() or sys.is_finalizing() to check if the interpreter is in process of being finalized before calling this function to avoid unwanted termination.

Acquire the global interpreter lock (if it has been created and thread support is
enabled) and set the thread state to tstate, which must not be NULL. If the lock has
been created, the current thread must not have acquired it, otherwise deadlock ensues.

Note

Calling this function from a thread when the runtime is finalizing will terminate the
thread, even if the thread was not created by Python. You can use _Py_IsFinalizing()
or sys.is_finalizing() to check if the interpreter is in process of being finalized
before calling this function to avoid unwanted termination.
sourceraw docstring

PyEval_SaveThreadclj

(PyEval_SaveThread)

Release the global interpreter lock (if it has been created and thread support is enabled) and reset the thread state to NULL, returning the previous thread state (which is not NULL). If the lock has been created, the current thread must have acquired it.

Release the global interpreter lock (if it has been created and thread support is
enabled) and reset the thread state to NULL, returning the previous thread state
(which is not NULL). If the lock has been created, the current thread must have
acquired it.
sourceraw docstring

PyMem_Freeclj

(PyMem_Free data-ptr)

Frees the memory block pointed to by p, which must have been returned by a previous call to PyMem_Malloc(), PyMem_Realloc() or PyMem_Calloc(). Otherwise, or if PyMem_Free(p) has been called before, undefined behavior occurs.

If p is NULL, no operation is performed.

Frees the memory block pointed to by p, which must have been returned by a previous
call to PyMem_Malloc(), PyMem_Realloc() or PyMem_Calloc(). Otherwise, or if
PyMem_Free(p) has been called before, undefined behavior occurs.

 If p is NULL, no operation is performed.
sourceraw docstring

PyRun_SimpleStringclj

(PyRun_SimpleString command)

This is a simplified interface to PyRun_SimpleStringFlags() below, leaving the PyCompilerFlags* argument set to NULL.

This is a simplified interface to PyRun_SimpleStringFlags() below, leaving the
PyCompilerFlags* argument set to NULL.
sourceraw docstring

PyRun_Stringclj

(PyRun_String program start-sym globals locals)

Return value: New reference.

Execute Python source code from str in the context specified by the objects globals and locals with the compiler flags specified by flags. globals must be a dictionary; locals can be any object that implements the mapping protocol. The parameter start specifies the start token that should be used to parse the source code.

Returns the result of executing the code as a Python object, or NULL if an exception was raised.

Return value: New reference.

Execute Python source code from str in the context specified by the objects globals
and locals with the compiler flags specified by flags. globals must be a dictionary;
locals can be any object that implements the mapping protocol. The parameter start
specifies the start token that should be used to parse the source code.

Returns the result of executing the code as a Python object, or NULL if an exception
was raised.
sourceraw docstring

PyRun_StringFlagsclj

(PyRun_StringFlags program start-sym globals locals compilerflags)

Return value: New reference.

Execute Python source code from str in the context specified by the objects globals and locals with the compiler flags specified by flags. globals must be a dictionary; locals can be any object that implements the mapping protocol. The parameter start specifies the start token that should be used to parse the source code.

Returns the result of executing the code as a Python object, or NULL if an exception was raised.

Return value: New reference.

Execute Python source code from str in the context specified by the objects globals
and locals with the compiler flags specified by flags. globals must be a dictionary;
locals can be any object that implements the mapping protocol. The parameter start
specifies the start token that should be used to parse the source code.

Returns the result of executing the code as a Python object, or NULL if an exception
was raised.
sourceraw docstring

PySys_SetArgvclj

(PySys_SetArgv argc argv)

This function works like PySys_SetArgvEx() with updatepath set to 1 unless the python interpreter was started with the -I.

Use Py_DecodeLocale() to decode a bytes string to get a wchar_* string.

Changed in version 3.4: The updatepath value depends on -I.

This function works like PySys_SetArgvEx() with updatepath set to 1 unless the python
interpreter was started with the -I.

  Use Py_DecodeLocale() to decode a bytes string to get a wchar_* string.

  Changed in version 3.4: The updatepath value depends on -I.
sourceraw docstring

PyThreadState_Getclj

(PyThreadState_Get)

Return the current thread state. The global interpreter lock must be held. When the current thread state is NULL, this issues a fatal error (so that the caller needn’t check for NULL).

Return the current thread state. The global interpreter lock must be held. When the
current thread state is NULL, this issues a fatal error (so that the caller needn’t
check for NULL).
sourceraw docstring

PyThreadState_Swapclj

(PyThreadState_Swap tstate)

Swap the current thread state with the thread state given by the argument tstate, which may be NULL. The global interpreter lock must be held and is not released.

Swap the current thread state with the thread state given by the argument tstate,
which may be NULL. The global interpreter lock must be held and is not released.
sourceraw docstring

start-symbolclj

(start-symbol item)
source

start-symbol-tableclj

source

type-symbol-namesclj

source

type-symbol-tableclj

source

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

× close