module

PyCall::LibPython

Constants

METH_VARARGS = 1
OP_EQ = 2
OP_GE = 5
OP_GT = 4
OP_LE = 1
OP_LT = 0

Боги rich-compare из CPython (object.h).

OP_NE = 3

Class methods

call_object(f : Pointer(LibPy::PyObjectT), args, kwargs : Pointer(LibPy::PyObjectT) | Nil = nil) : Pointer(LibPy::PyObjectT)
Source
callable?(o : Pointer(LibPy::PyObjectT)) : Bool
Source
check!(result : Pointer(LibPy::PyObjectT), context : String) : Pointer(LibPy::PyObjectT)

Вызывается под взятым GIL; null-результат с выставленной ошибкой → PyError.

Source
check_status(status : Int32, context : String) : Nil
Source
compare(op : Int32, a : Pointer(LibPy::PyObjectT), b : Pointer(LibPy::PyObjectT)) : Bool
Source
delattr(o : Pointer(LibPy::PyObjectT), name : String) : Nil
Source
delitem(o : Pointer(LibPy::PyObjectT), key) : Nil
Source
getattr(o : Pointer(LibPy::PyObjectT), name : String) : Pointer(LibPy::PyObjectT)
Source
getitem(o : Pointer(LibPy::PyObjectT), key) : Pointer(LibPy::PyObjectT)
Source
hasattr?(o : Pointer(LibPy::PyObjectT), name : String) : Bool
Source
import_module(name : String) : Pointer(LibPy::PyObjectT)
Source
none
Source
py_bool_type
Source
py_dict_type
Source
py_false
Source
py_float_type
Source
py_list_type
Source
py_long_type
Source
py_set_type
Source
py_true
Source
py_tuple_type
Source
py_type_type
Source
py_unicode_type
Source
repr(o : Pointer(LibPy::PyObjectT)) : String
Source
setattr(o : Pointer(LibPy::PyObjectT), name : String, value : Pointer(LibPy::PyObjectT)) : Nil
Source
setitem(o : Pointer(LibPy::PyObjectT), key, value) : Nil
Source
str(o : Pointer(LibPy::PyObjectT)) : String
Source
type_of(o : Pointer(LibPy::PyObjectT)) : Pointer(LibPy::PyObjectT)
Source