[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-cpp-sig
Subject:    [C++-sig] enum pickle issue in boost python
From:       rwgk () yahoo ! com (Ralf W !  Grosse-Kunstleve)
Date:       2006-11-28 1:28:15
Message-ID: 20061128012815.7191.qmail () web31114 ! mail ! mud ! yahoo ! com
[Download RAW message or body]

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 at hotmail.com>
To: c++-sig at 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic