[C++-sig] Nesting classes in boost::python
Hans Meine
meine at informatik.uni-hamburg.de
Wed Jun 4 17:36:01 CEST 2008
Am Mittwoch, 04. Juni 2008 17:31:22 schrieb Hans Meine:
> The only reason why I could imagine that py++ does not do so is that AFAIK
> this breaks pickling (and possibly more things?), since Foo.Bar.__name__
> is "Bar" in Python, which does not allow the pickle module to locate the
> class correctly. :-(
Stupid me - I already pondered this in the past, experimented, and came to
realize that this is not a BPL bug, but holds the same for pure Python. :-(
Nevertheless, one could at least add a switch to py++ for optionally nesting
classes, no?
--
Ciao, / /
/--/
/ / ANS
More information about the Cplusplus-sig
mailing list