[C++-sig] enum pickle issue in boost python

Shashank Bapat shashankbapat at hotmail.com
Tue Nov 28 01:55:24 CET 2006


Ralf,

I tried cvs HEAD and it has same problem.

So I fixed it in my local copy (see diff below). This change is equivalent 
to class.cpp change made in version 1.50 of class.cpp:
http://boost.cvs.sourceforge.net/boost/boost/libs/python/src/object/class.cpp?hideattic=0&r1=1.49&r2=1.50

Thanks
-Shashank

===================================================================
RCS file: /cvsroot/boost/boost/libs/python/src/object/enum.cpp,v
retrieving revision 1.9
diff -r1.9 enum.cpp
144c144
<           module_name += '.';
---
>          d["__module__"] = module_name;
146,147c146
<       object result = (object(metatype))(
<           module_name + name, make_tuple(base), d);
---
>       object result = (object(metatype))(name, make_tuple(base), d);

_________________________________________________________________
Share your latest news with your friends with the Windows Live Spaces 
friends module. 
http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mk




More information about the Cplusplus-sig mailing list