Liking cljdoc? Tell your friends :D

libpython-clj.python.interpreter


*current-thread-interpreter*clj

source

*interpreters*clj

source

*main-interpreter*clj

source

*program-name*clj

source

acquire-gil!clj

(acquire-gil! interpreter)

Non-reentrant pathway to acquire gil. It must not be held by this thread.

Non-reentrant pathway to acquire gil.  It must not be held by this thread.
sourceraw docstring

add-interpreter-handle!clj

(add-interpreter-handle! interpreter)
source

check-error-logclj

(check-error-log)
source

check-error-strclj

(check-error-str)

Function assumes python stdout and stderr have been redirected

Function assumes python stdout and stderr have been redirected
sourceraw docstring

check-error-throwclj

(check-error-throw)
source

conj-forever!clj

(conj-forever! items)
source

ensure-bound-interpreterclj

(ensure-bound-interpreter)
source

ensure-interpreterclj

(ensure-interpreter)
source

finalize!clj

(finalize!)
source

find-jvm-bridge-entryclj

(find-jvm-bridge-entry handle interpreter)
source

get-jvm-bridgeclj

(get-jvm-bridge handle interpreter)
source

get-object-handleclj

(get-object-handle obj)
source

handle->interpreterclj

(handle->interpreter interpreter-handle)
source

handle-or-interpreter->interpreterclj

(handle-or-interpreter->interpreter hdl-or-interp)
source

initialize!clj

(initialize! & [program-name])
source

py-type-keywordclj

(py-type-keyword typeobj)

Get a keyword that corresponds to the current type. Uses global type symbol table. Add the type to the symbol table if it does not exist already.

Get a keyword that corresponds to the current type.  Uses global type symbol table.
Add the type to the symbol table if it does not exist already.
sourceraw docstring

register-bridge!clj

(register-bridge! bridge bridge-pyobject)
source

release-gil!clj

(release-gil! interpreter)

non-reentrant pathway to release the gil. It must not be held by this thread.

non-reentrant pathway to release the gil.  It must not be held by this thread.
sourceraw docstring

remove-interpreter-handle!clj

(remove-interpreter-handle! interpreter)
source

swap-interpreters!clj

(swap-interpreters! old-interp new-interp)

The gil must be held by this thread. This swaps out the current interpreter to make a new one current.

The gil must be held by this thread.  This swaps out the current interpreter
to make a new one current.
sourceraw docstring

unregister-bridge!clj

(unregister-bridge! bridge)
source

with-gilcljmacro

(with-gil & body)

See with-gil-fn

See with-gil-fn
sourceraw docstring

with-gil-fnclj

(with-gil-fn interpreter body-fn)

Run a function with the gil aquired. If you acquired the gil, release it when finished. Note we also lock the interpreter so that even if some code releases thegil, this interpreter cannot be entered.

Run a function with the gil aquired.  If you acquired the gil, release
it when finished.  Note we also lock the interpreter so that even
if some code releases thegil, this interpreter cannot be entered.
sourceraw docstring

with-interpretercljmacro

(with-interpreter interp & body)

See with-gil-fn

See with-gil-fn
sourceraw docstring

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

× close