Re: [C++-sig] enum pickle issue in boost python
Thanks! Could you please also add pickle.dumps, pickle.loads tests to boost/libs/python/test/enum.py? If you could send the patched files (just to me, not the list) I'll test them locally and check them in. ----- Original Message ---- From: Shashank Bapat <shashankbapat@hotmail.com> To: c++-sig@python.org Sent: Monday, November 27, 2006 4:55:24 PM Subject: [C++-sig] enum pickle issue in boost python 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);
____________________________________________________________________________________ Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com
participants (1)
-
Ralf W. Grosse-Kunstleve