[C++-sig] [c++-sig] Is it a BUG? boost.python makes doctest impossible to recursive test.
Hans Meine
meine at informatik.uni-hamburg.de
Mon Jun 11 17:07:18 CEST 2007
Am Montag, 11. Juni 2007 14:17:37 schrieb 甜瓜:
> Here the val comes from C.__dict__['func']. If you print C.__dict__,
> you will find a pair:
> 'func' : <Boost.Python.function object at 0x....>
Ah, that is interesting. So that's obviously the difference between
@staticmethods and normal ones - I did not know that that happens as late as
when writing C.func, but I thought it was a matter of class definition time.
Note to myself: type(C.func) != type(C.__dict__['func'])
Which also explains why methods have the right type in boost::python.. they
haven't. ;-)
--
Ciao, / /
/--/
/ / ANS
More information about the Cplusplus-sig
mailing list