[C++-sig] boost.python metaclass problem

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Fri Mar 2 16:55:31 CET 2007


> 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 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20070302/f91c81af/attachment.htm>


More information about the Cplusplus-sig mailing list