Re: Python 3.1.2 and marshal

2010-07-17 Thread raj
On Jul 17, 10:11 pm, Thomas Jollans wrote: [Snip] > So, the contents of the file is identical, but Python 3 reads the whole > file, Python 2 reads only the data it uses. > > This looks like a simple optimisation: read the whole file at once, > instead of byte-by-byte, to improve performance when r

Re: Python 3.1.2 and marshal

2010-07-17 Thread Thomas Jollans
On 07/17/2010 06:21 PM, raj wrote: > Hi, > > I am using 64 bit Python on an x86_64 platform (Fedora 13). I have > some code that uses the python marshal module to serialize some > objects to files. However, in moving the code to python 3 I have come > across a situation where, if more than one ob

Python 3.1.2 and marshal

2010-07-17 Thread raj
Hi, I am using 64 bit Python on an x86_64 platform (Fedora 13). I have some code that uses the python marshal module to serialize some objects to files. However, in moving the code to python 3 I have come across a situation where, if more than one object has been serialized to a file, then while