Re: [C++-sig] C++ derived from bp::dict

2011-02-10 Thread Michael Andronov
Thanks for a speedy reply! Michael. ___ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig

Re: [C++-sig] C++ derived from bp::dict

2011-02-10 Thread Stefan Seefeld
Hi Michael, I strongly doubt that what you want is possible. While class_ generates a Python type that wraps 'A', boost::python::dict itself is not built that way. Rather, it is a proxy to a Python dict object. Types defined via "class_<>" are added to a type registrar, which is inspected whe

[C++-sig] C++ derived from bp::dict

2011-02-10 Thread Michael Andronov
Hi, Being a newbie to boost::python, I have a question ( hopefully simple), which failed to find the answer in mail logs: let's say a. I have a C++ class, derived from boost::python::dict ; b. I would like later to get access to myLong, and to the dictionary, my class derived from. Would men