This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ronaldoussoren
Recipients ajaksu2, belopolsky, benjamin.peterson, ggenellina, gjb1002, jackjansen, loewis, pitrou, ronaldoussoren
Date 2010-07-15.07:50:21
SpamBayes Score 0.001934444
Marked as misclassified No
Message-id <1279180223.8.0.969109353483.issue1724366@psf.upfronthosting.co.za>
In-reply-to
Content
Antoine, to answer your question about universal newlines in pickle in msg87622. The pickle.py docsstrings in 2.7+ contain the following text (amongst others): 

        The optional protocol argument tells the pickler to use the
        given protocol; supported protocols are 0, 1, 2.  The default
        protocol is 0, to be backwards compatible.  (Protocol 0 is the
        only protocol that can be written to a file opened in text
        mode and read back successfully.  When using a protocol higher
        than 0, make sure the file is opened in binary mode, both when
        pickling and unpickling.)

This clearly indicates that protocol 0 is supposed to compatible with text-mode files. That would mean this issue probably is not invalid, the documentation above implies that a pickle file written in text mode on Windows should be readable on a Unix system.

That said, I'd advise anyone to use the highest possible protocol because higher protocol levels are more efficient and better support newstyle classes.
History
Date User Action Args
2010-07-15 07:50:23ronaldoussorensetrecipients: + ronaldoussoren, loewis, jackjansen, gjb1002, belopolsky, ggenellina, pitrou, ajaksu2, benjamin.peterson
2010-07-15 07:50:23ronaldoussorensetmessageid: <1279180223.8.0.969109353483.issue1724366@psf.upfronthosting.co.za>
2010-07-15 07:50:22ronaldoussorenlinkissue1724366 messages
2010-07-15 07:50:21ronaldoussorencreate