<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Modules/cPickle.c, branch v2.2a3</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/cPickle.c?h=v2.2a3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/cPickle.c?h=v2.2a3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2001-08-28T22:08:34Z</updated>
<entry>
<title>load_int:  The fallback to long ints was coded in such a way that it</title>
<updated>2001-08-28T22:08:34Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-08-28T22:08:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=12778e314b884be72dba30145aff6ce8d0156344'/>
<id>urn:sha1:12778e314b884be72dba30145aff6ce8d0156344</id>
<content type='text'>
couldn't succeed.  Fixed.
</content>
</entry>
<entry>
<title>SF patch #452239 by Gordon McMillan, to fix SF bug #451547.</title>
<updated>2001-08-18T21:22:07Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-08-18T21:22:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a92d16aaec1dc3c0d2e54c27516853b3e1bbd96a'/>
<id>urn:sha1:a92d16aaec1dc3c0d2e54c27516853b3e1bbd96a</id>
<content type='text'>
   This patch attempts to do to cPickle what Guido did
   for pickle.py v 1.50. That is: save_global tries
   importing the module, and fetching the name from the
   module. If that fails, or the returned object is not
   the same one we started with, it raises a
   PicklingError. (All this so pickling a lambda will
   fail at save time, rather than load time).
</content>
</entry>
<entry>
<title>Patch #445762: Support --disable-unicode</title>
<updated>2001-08-17T18:39:25Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2001-08-17T18:39:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=339d0f720e86dc34837547c90d3003a4a68d7d46'/>
<id>urn:sha1:339d0f720e86dc34837547c90d3003a4a68d7d46</id>
<content type='text'>
- Do not compile unicodeobject, unicodectype, and unicodedata if Unicode is disabled
- check for Py_USING_UNICODE in all places that use Unicode functions
- disables unicode literals, and the builtin functions
- add the types.StringTypes list
- remove Unicode literals from most tests.
</content>
</entry>
<entry>
<title>Merge of descr-branch back into trunk.</title>
<updated>2001-08-02T04:15:00Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-08-02T04:15:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6d6c1a35e08b95a83dbe47dbd9e6474daff00354'/>
<id>urn:sha1:6d6c1a35e08b95a83dbe47dbd9e6474daff00354</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove code to initialize globals that are never used.</title>
<updated>2001-07-17T18:34:03Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-07-17T18:34:03Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2c7a6851edb9f56cbfc6e92259ff34f73e811601'/>
<id>urn:sha1:2c7a6851edb9f56cbfc6e92259ff34f73e811601</id>
<content type='text'>
Add some casts to quiet warnings from an unspecified non-GCC compiler.

This closes SF patch #436258.
</content>
</entry>
<entry>
<title>Ack -- this module mixes tabs and spaces, and what appears to be a mix</title>
<updated>2001-04-10T04:35:28Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-04-10T04:35:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d8ae7c2999b0362c098e57d64f49a710ce8238d0'/>
<id>urn:sha1:d8ae7c2999b0362c098e57d64f49a710ce8238d0</id>
<content type='text'>
of 2-space and 4-space indents.  Whatever, when I saw the checkin diff it
was clear that what my editor thinks a tab means didn't match this module's
belief.  Removed all the tabs from the lines I added and changed, left
everything else alone.
</content>
</entry>
<entry>
<title>On a sizeof(long)==8 machine, ints in range(2**31, 2**32) were getting</title>
<updated>2001-04-10T04:22:00Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-04-10T04:22:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3906eb877a7010dae5faf7ff2d48634d56ed5ec2'/>
<id>urn:sha1:3906eb877a7010dae5faf7ff2d48634d56ed5ec2</id>
<content type='text'>
pickled into the signed(!) 4-byte BININT format, so were getting unpickled
again as negative ints.  Repaired that.
Added some minimal docs at the top about what I've learned about the pickle
format codes (little of which was obvious from staring at the code,
although that's partly because all the size-related bugs greatly obscured
the true intent of the code).
Happy side effect:  because save_int() needed to grow a *proper* range
check in order to fix this bug, it can now use the more-efficient BININT1,
BININT2 and BININT formats when the long's value is small enough to fit
in a signed 4-byte int (before this, on a sizeof(long)==8 box it always
used the general INT format for negative ints).
test_cpickle works again on sizeof(long)==8 machines.  test_pickle is
still busted big-time.
</content>
</entry>
<entry>
<title>Critical fix:  if cPickle on a sizeof(long)==8 box is used to read a</title>
<updated>2001-04-10T01:54:42Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-04-10T01:54:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=bfa18f711f01477b143aab37921eafabc0cb38fb'/>
<id>urn:sha1:bfa18f711f01477b143aab37921eafabc0cb38fb</id>
<content type='text'>
binary pickle, and the latter contains a pickle of a negative Python
int i written on a sizeof(long)==4 box (and whether by cPickle or
pickle.py), it's read incorrectly as i + 2**32.  The patch repairs that,
and allows test_cpickle.py (to which I added a relevant test case earlier
today) to work again on sizeof(long)==8 boxes.
There's another (at least one) sizeof(long)==8 binary pickle bug, but in
pickle.py instead.  That bug is still there, and test_pickle.py doesn't
catch it yet (try pickling and unpickling, e.g., 1 &lt;&lt; 46).
</content>
</entry>
<entry>
<title>Make cPickle use the recently-added PyInstance_NewRaw() API to create</title>
<updated>2001-03-22T17:52:17Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-03-22T17:52:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2c7735593766e948036c2c714b4b2c41542f9743'/>
<id>urn:sha1:2c7735593766e948036c2c714b4b2c41542f9743</id>
<content type='text'>
instance objects without calling the constructor.  This is the same as
the new.instance() function.
</content>
</entry>
<entry>
<title>SF bug [ #233200 ] cPickle does not use Py_BEGIN_ALLOW_THREADS.</title>
<updated>2001-03-17T04:50:51Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-03-17T04:50:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=84e87f379eb67330cf2cdd3e9ed78d55d5992384'/>
<id>urn:sha1:84e87f379eb67330cf2cdd3e9ed78d55d5992384</id>
<content type='text'>
http://sourceforge.net/tracker/?func=detail&amp;aid=233200&amp;group_id=5470&amp;atid=105470
Wrapped the fread/fwrite calls in thread BEGIN_ALLOW/END_ALLOW brackets
Afraid I hit the "delete trailing whitespace key" too!  Only two "real" sections
of code changed here.
</content>
</entry>
</feed>
