Re: [C++-sig] boost.python metaclass problem
I don't know pyqt, and I'm not sure you get access to boost.python's own metaclass. (David ?)
Simply use the __class__ attribute of a Boost.Python wrapped class. I.e. if the class is "bar" (and you construct objects with "bar()"), bar.__class__ will give you the metaclass. See also: boost/libs/python/doc/tutorial/doc/tutorial.qbk Look for: __metaclass__ But, like Hans I'm also a bit skeptical ... Ralf ____________________________________________________________________________________ We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. http://tv.yahoo.com/collections/265
Ralf W. Grosse-Kunstleve wrote:
I don't know pyqt, and I'm not sure you get access to boost.python's own metaclass. (David ?)
Simply use the __class__ attribute of a Boost.Python wrapped class. I.e. if the class is "bar" (and you construct objects with "bar()"), bar.__class__ will give you the metaclass. See also: boost/libs/python/doc/tutorial/doc/tutorial.qbk Look for: __metaclass__
Yeah, I certainly know how to access an object's metaclass. What I don't know is how to access that metaclass directly to derive from it in order to generate a new metaclass suitable for the new class... Regards, Stefan -- ...ich hab' noch einen Koffer in Berlin...
participants (2)
-
Ralf W. Grosse-Kunstleve -
Stefan Seefeld