module Crython
Defined in:
crython.crcrython/env.cr
crython/error.cr
crython/libpython.cr
crython/libpython/abstract.cr
crython/libpython/boolobject.cr
crython/libpython/ceval.cr
crython/libpython/complexobject.cr
crython/libpython/dictobject.cr
crython/libpython/floatobject.cr
crython/libpython/import.cr
crython/libpython/listobject.cr
crython/libpython/longobject.cr
crython/libpython/modsupport.cr
crython/libpython/pyerrors.cr
crython/libpython/pylifecycle.cr
crython/libpython/pythonrun.cr
crython/libpython/refcount.cr
crython/libpython/setobject.cr
crython/libpython/sliceobject.cr
crython/libpython/tupleobject.cr
crython/libpython/unicodeobject.cr
crython/py2cr/basic.cr
crython/py2cr/collections.cr
crython/pyobject.cr
crython/pyobject/object_protocol.cr
crython/version.cr
Constant Summary
-
VERSION =
{{ (`shards version /srv/crystaldoc.info/github-kojix2-crython-dev/src/crython`).chomp.stringify }}
Class Method Summary
-
.active_session?(id : UInt64) : Bool
Check if the current session is active
-
.clear_error
Clear the current Python error state
-
.err_occurred? : Bool
Whether the Python interpreter raised an error.
-
.eval(code : String) : Nil
Evaluate Python code with error handling
-
.extract_python_error : String | Nil
Helper method to extract Python error information
-
.finalize
Finalize Python interpreter
- .import(name : String) : PyObject
-
.init
Initialize a Python interpreter
-
.initialized? : Bool
Check if Python interpreter is initialized
- .python_build_info : String
- .python_compiler : String
-
.python_version : String
Python environment information (cached)
-
.session(&)
Embed Python execution
- .session_id : UInt64
- .slice_full : PyObject
Class Method Detail
Helper method to extract Python error information