Liking cljdoc? Tell your friends :D

libpython-clj.python.interop

The messy details of actual embedding python in the jvm, aside from interpreter state, go here. Don't expect a pleasant ride. If you want to create a new python type or function, something that requires knowledge of the C structures behind everything that knowledge should be encoded in this file.

The messy details of actual embedding python in the jvm, aside from interpreter
state, go here.  Don't expect a pleasant ride.  If you want to create a new python
type or function, something that requires knowledge of the C structures behind
everything that knowledge should be encoded in this file.
raw docstring

add-moduleclj

(add-module modname)
source

create-bridge-from-att-mapclj

(create-bridge-from-att-map src-item att-map)
source

create-python-typeclj

(create-python-type type-name module-name method-def-data)
source

create-var-writerclj

(create-var-writer writer-var)

Returns an unregistered bridge

Returns an unregistered bridge
sourceraw docstring

expose-bridge-to-python!clj

(expose-bridge-to-python! bridge & [libpython-module])

Create a python object for this bridge.

Create a python object for this bridge.
sourceraw docstring

fieldOffsetMethodclj

source

get-or-create-var-writerclj

(get-or-create-var-writer writer-var)
source

import-moduleclj

(import-module modname)
source

libpython-clj-module-nameclj

source

method-def-data-seq->method-def-refclj

(method-def-data-seq->method-def-ref method-def-data-seq)
source

module-dictclj

(module-dict module)
source

offsetofclj

(offsetof structure-instance fieldname)
source

pybridge->bridgeclj

(pybridge->bridge pybridge)
source

register-bridge-type!clj

(register-bridge-type! &
                       {:keys [type-name module] :or {type-name "jvm_bridge"}})

Register the bridge type and return newly created type.

Register the bridge type and return newly created type.
sourceraw docstring

register-type!clj

(register-type! module
                {:keys [type-name docstring method-definitions tp_flags
                        tp_basicsize tp_new tp_dealloc tp_getattr tp_setattr]
                 :as type-definition})

Register a new type. Please refer to python documentation for meaning of the variables.

Register a new type.  Please refer to python documentation for meaning
of the variables.
sourceraw docstring

run-simple-stringclj

(run-simple-string program & {:keys [globals locals]})

Run a simple string returning boolean 1 or 0. Implemented in cpython as:

PyObject *m, *d, *v; m = PyImport_AddModule("main"); if (m == NULL) return -1; d = PyModule_GetDict(m); v = PyRun_StringFlags(command, Py_file_input, d, d, flags); if (v == NULL) { PyErr_Print(); return -1; } Py_DECREF(v); return 0;

Run a simple string returning boolean 1 or 0.
Implemented in cpython as:

  PyObject *m, *d, *v;
  m = PyImport_AddModule("__main__");
  if (m == NULL)
      return -1;
  d = PyModule_GetDict(m);
  v = PyRun_StringFlags(command, Py_file_input, d, d, flags);
  if (v == NULL) {
      PyErr_Print();
      return -1;
  }
  Py_DECREF(v);
  return 0;
sourceraw docstring

run-stringclj

(run-string program & {:keys [globals locals]})

If you don't know what you are doing, this will sink you. See documentation for run-simple-string.

If you don't know what you are doing, this will sink you.  See documentation for
run-simple-string.
sourceraw docstring

setup-std-writerclj

(setup-std-writer writer-var sys-mod-attname)
source

test-cpp-exampleclj

(test-cpp-example)
source

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

× close