<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Modules/cPickle.c, branch v2.3.2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/cPickle.c?h=v2.3.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/cPickle.c?h=v2.3.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-07-11T19:42:49Z</updated>
<entry>
<title>The Unpickler forget about its find_class attribute.</title>
<updated>2003-07-11T19:42:49Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2003-07-11T19:42:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fff093fa7f429ecab973c192c8c0da0216355847'/>
<id>urn:sha1:fff093fa7f429ecab973c192c8c0da0216355847</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove many blanket try/except clauses.</title>
<updated>2003-06-16T20:19:49Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2003-06-16T20:19:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f00368f9edb4842ef668f4fcfbdcf2f34e3c6226'/>
<id>urn:sha1:f00368f9edb4842ef668f4fcfbdcf2f34e3c6226</id>
<content type='text'>
SF bug [ 751276 ] cPickle doesn't raise error, pickle does (recursiondepth)

Most of the calls to PyErr_Clear() were intended to catch &amp; clear an
attribute error and try something different.  Guard all those cases
with a PyErr_ExceptionMatches() and fail if some other error
occurred.  The other error is likely a bug in the user code.

This is basically the C equivalent of changing "except:" to
"except AttributeError:"
</content>
</entry>
<entry>
<title>PyType_Ready():  Complain if the type is a base type, and gc'able, and</title>
<updated>2003-05-21T21:29:48Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-05-21T21:29:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3cfe75470d1f77468be01002d09d884c3a431827'/>
<id>urn:sha1:3cfe75470d1f77468be01002d09d884c3a431827</id>
<content type='text'>
tp_free is NULL or PyObject_Del at the end.  Because it's a base type
it must call tp_free in its dealloc function, and because it's gc'able
it must not call PyObject_Del.

inherit_slots():  Don't inherit tp_free unless the type and its base
agree about whether they're gc'able.  If the type is gc'able and the
base is not, and the base uses the default PyObject_Del for its
tp_free, give the type PyObject_GC_Del for its tp_free (the appropriate
default for a gc'able type).

cPickle.c:  The Pickler and Unpickler types claim to be base classes
and gc'able, but their dealloc functions didn't call tp_free.
Repaired that.  Also call PyType_Ready() on these typeobjects, so
that the correct (PyObject_GC_Del) default memory-freeing function
gets plugged into these types' tp_free slots.
</content>
</entry>
<entry>
<title>Make Unpickler objects colletable.</title>
<updated>2003-04-09T21:25:30Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2003-04-09T21:25:30Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7b5ce7f25a353fbf6516592f3fdcc9f10224ecb1'/>
<id>urn:sha1:7b5ce7f25a353fbf6516592f3fdcc9f10224ecb1</id>
<content type='text'>
Bugfix candidate.
</content>
</entry>
<entry>
<title>Make Picklers collectable.</title>
<updated>2003-04-09T21:05:12Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2003-04-09T21:05:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4cf6319cd27c73d0d962ec9bc6011ff0acab3b29'/>
<id>urn:sha1:4cf6319cd27c73d0d962ec9bc6011ff0acab3b29</id>
<content type='text'>
Bug fix candidate.
</content>
</entry>
<entry>
<title>New private API functions _PyFloat_{Pack,Unpack}(4,8}.  This is a</title>
<updated>2003-03-20T20:53:32Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-03-20T20:53:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9905b943f79a03741b062c82bdf96a078df303e4'/>
<id>urn:sha1:9905b943f79a03741b062c82bdf96a078df303e4</id>
<content type='text'>
refactoring to get all the duplicates of this delicate code out of the
cPickle and struct modules.
</content>
</entry>
<entry>
<title>SF bug 705836: struct.pack of floats in non-native endian order</title>
<updated>2003-03-20T18:32:13Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-03-20T18:32:13Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d50ade68ec240ea8ea12604809d8c70985263dce'/>
<id>urn:sha1:d50ade68ec240ea8ea12604809d8c70985263dce</id>
<content type='text'>
pack_float, pack_double, save_float:  All the routines for creating
IEEE-format packed representations of floats and doubles simply ignored
that rounding can (in rare cases) propagate out of a long string of
1 bits.  At worst, the end-off carry can (by mistake) interfere with
the exponent value, and then unpacking yields a result wrong by a factor
of 2.  In less severe cases, it can end up losing more low-order bits
than intended, or fail to catch overflow *caused* by rounding.

Bugfix candidate, but I already backported this to 2.2.

In 2.3, this code remains in severe need of refactoring.
</content>
</entry>
<entry>
<title>Use __reduce_ex__.</title>
<updated>2003-02-19T01:45:13Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2003-02-19T01:45:13Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b289b87a375297cf86d453e6696db48f3ce91620'/>
<id>urn:sha1:b289b87a375297cf86d453e6696db48f3ce91620</id>
<content type='text'>
</content>
</entry>
<entry>
<title>save_global():  Trying to resolve module.name can fail for two</title>
<updated>2003-02-18T20:50:45Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-02-18T20:50:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b9ce7cd8b8cea66e3ad062fb273efdbf14a7e4e0'/>
<id>urn:sha1:b9ce7cd8b8cea66e3ad062fb273efdbf14a7e4e0</id>
<content type='text'>
reasons:  importing module can fail, or the attribute lookup
module.name can fail.  We were giving the same error msg for
both cases, making it needlessly hard to guess what went wrong.
These cases give different error msgs now.
</content>
</entry>
<entry>
<title>Make 2 module variables static.  Assuming this is correct.</title>
<updated>2003-02-15T15:07:17Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2003-02-15T15:07:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0ae4c4a8235d1e7f614f77b8e343bbbc34e5179b'/>
<id>urn:sha1:0ae4c4a8235d1e7f614f77b8e343bbbc34e5179b</id>
<content type='text'>
</content>
</entry>
</feed>
