[SciPy-User] format for chunked file save and read ?

Jason Rennie jrennie@gmail....
Wed Sep 22 13:40:26 CDT 2010


On Wed, Sep 22, 2010 at 2:09 PM, <josef.pktd@gmail.com> wrote:

> Are all python types guaranteed to be pickle compatible between python
> 2.5 and 3.x ?
>

The pickle format is python-version neutral.  It sounds like the biggest
issue is with name changes:

http://peadrop.com/blog/2009/04/05/porting-your-code-to-python-3/ (search
for "pickle")

Some gymnastics will be required if you are storing objects from modules
which were deleted and/or renamed.  Sounds like there was an issue with
going forward, but it was resolved:

http://bugs.python.org/issue6137

Also, since everything is new-style in 3.x, make sure that all classes you
pickle are new-style.  Allowing old-style classes to be loaded in 3.x was
rejected:

http://bugs.python.org/issue2572

One major issue was the elimination of str, but it sounds like this is being
dealt with in a reasonable manner per this thread:

http://www.mail-archive.com/python-3000@python.org/msg10949.html

Jason

-- 
Jason Rennie
Research Scientist, ITA Software
617-714-2645
http://www.itasoftware.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20100922/500c377d/attachment.html 


More information about the SciPy-User mailing list