cPickle.dumps differs from Pickle.dumps; looks like a bug.
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Thu May 17 01:29:35 EDT 2007
En Thu, 17 May 2007 02:09:02 -0300, Josiah Carlson
<josiah.carlson at sbcglobal.net> escribió:
> All strings of length 0 (there is 1) and 1 (there are 256) are interned.
I thought it was the case too, but not always:
py> a = "a"
py> b = "A".lower()
py> a==b
True
py> a is b
False
py> a is intern(a)
True
py> b is intern(b)
False
--
Gabriel Genellina
More information about the Python-list
mailing list