A bug in cPickle?

infidel saint.infidel at gmail.com
Wed May 16 18:40:53 EDT 2007


ActivePython 2.5.1.1 as well:

PythonWin 2.5.1 (r251:54863, May  1 2007, 17:47:05) [MSC v.1310 32 bit
(Intel)] on win32.
Portions Copyright 1994-2006 Mark Hammond - see 'Help/About PythonWin'
for further copyright information.
>>> from pickle import dumps
>>> from cPickle import dumps as cdumps
>>> print dumps('10')
S'10'
p0
.
>>> print dumps(str(10))
S'10'
p0
.
>>> print cdumps('10')
S'10'
p1
.
>>> print cdumps(str(10))
S'10'
.




More information about the Python-list mailing list