[C++-sig] How to define a Python metaclass with Boost.Python?

2012-02-06 Thread paulcmnt
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

[C++-sig] boost ref problem

2012-02-06 Thread Jay Riley
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

[C++-sig] boost::python handles boost::shared_ptr specially...

2012-02-06 Thread Neal Becker
Will std::shared_ptr just work also? ___ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig

[C++-sig] How to define a Python metaclass with Boost.Python?

2012-02-06 Thread Paul-Cristian Manta
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