The Python C API has the `PyObject *PyType_Type` object, which is equivalent
to `type` in the interpreter. If I want to define a metaclass in C++, how
can I set `type` as one of its bases in Boost.Python? Also, what other
things should I take into consideration when defining a Python metaclass in
C
I'm trying to wrap a C++ class into python. I need to pass an enum value by
reference through a virtual function. I'm doing it like so (non relevant code
omitted):
class BasicRMLScreenWrap : public BasicRMLScreen{
public:bool HandleKeyPress
Will std::shared_ptr just work also?
___
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig
The Python C API has the `PyObject *PyType_Type` object, which is
equivalent to `type` in the interpreter. If I want to define a metaclass in
C++, how can I set `type` as one of its bases in Boost.Python? Also, what
other things should I take into consideration when defining a Python
metaclass in C