![]() |
BoB robotics
The Brains on Board robotics library
|
Functions | |
| dict | pybind11::globals () |
| template<typename T , detail::enable_if_t< std::is_base_of< object, T >::value, int > = 0> | |
| bool | pybind11::isinstance (handle obj) |
| bool | pybind11::isinstance (handle obj, handle type) |
| bool | pybind11::hasattr (handle obj, handle name) |
| bool | pybind11::hasattr (handle obj, const char *name) |
| void | pybind11::delattr (handle obj, handle name) |
| void | pybind11::delattr (handle obj, const char *name) |
| object | pybind11::getattr (handle obj, handle name) |
| object | pybind11::getattr (handle obj, const char *name) |
| object | pybind11::getattr (handle obj, handle name, handle default_) |
| object | pybind11::getattr (handle obj, const char *name, handle default_) |
| void | pybind11::setattr (handle obj, handle name, handle value) |
| void | pybind11::setattr (handle obj, const char *name, handle value) |
| ssize_t | pybind11::hash (handle obj) |
| size_t | pybind11::len (handle h) |
| Get the length of a Python object. | |
| size_t | pybind11::len_hint (handle h) |
| str | pybind11::repr (handle h) |
| iterator | pybind11::iter (handle obj) |
Fetch and hold an error which was already set in Python. An instance of this is typically thrown to propagate python-side errors back through C++ which can either be caught manually or else falls back to the function dispatcher (which then raises the captured error back to python).
Unless stated otherwise, the following C++ functions behave the same as their Python counterparts.
|
inline |
Return a dictionary representing the global variables in the current execution frame, or __main__.__dict__ if there is no frame (usually when the interpreter is embedded).
| bool pybind11::isinstance | ( | handle | obj | ) |
\rst Return true if obj is an instance of T. Type T must be a subclass of object or a class which was exposed to Python as py::class_<T>. \endrst
Return true if obj is an instance of the type.
|
inline |
Get the length hint of a Python object. Returns 0 when this cannot be determined.