<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Modules/cPickle.c, branch v2.2.3</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/cPickle.c?h=v2.2.3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/cPickle.c?h=v2.2.3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-05-21T20:43:10Z</updated>
<entry>
<title>PyType_Ready():  Complain if the type is a base type, and gc'able, and</title>
<updated>2003-05-21T20:43:10Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-05-21T20:43:10Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=97719c9ce56bfb19fa7b0833c8c7947ad2fd7e52'/>
<id>urn:sha1:97719c9ce56bfb19fa7b0833c8c7947ad2fd7e52</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>Backport fixes to make more types collectable.</title>
<updated>2003-05-09T18:29:21Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2003-05-09T18:29:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d8136b500a73eb48ba2e122c3f8e0fb858218c9e'/>
<id>urn:sha1:d8136b500a73eb48ba2e122c3f8e0fb858218c9e</id>
<content type='text'>
classmethod, staticmethod, cPickle.Pickler, cPickle.UNpickler
</content>
</entry>
<entry>
<title>SF bug 705836: struct.pack of floats in non-native endian order</title>
<updated>2003-03-20T18:31:20Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2003-03-20T18:31:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=58d23ae9a919520ee5b849a4c6c48fa833c9958d'/>
<id>urn:sha1:58d23ae9a919520ee5b849a4c6c48fa833c9958d</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.
</content>
</entry>
<entry>
<title>backport jhylton's checkin of</title>
<updated>2002-09-24T11:53:34Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2002-09-24T11:53:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ed9bb76950cc233caaea74b81a80ce188402fc74'/>
<id>urn:sha1:ed9bb76950cc233caaea74b81a80ce188402fc74</id>
<content type='text'>
    revision 2.87 of cPickle.c

Do more robust test of whether global objects are accessible.

PyImport_ImportModule() is not guaranteed to return a module object.
When another type of object was returned, the PyModule_GetDict() call
return NULL and the subsequent GetItem() seg faulted.

Bug fix candidate.

----------

Once again, whitespace chances scuppered automatic backporting, so
I did this by hand.  Review probably wise -- but I have run make test!

Also incorporates revision 2.88 which was just removing a now unused
declaration.
</content>
</entry>
<entry>
<title>Add recursion limit to pickling. Fixes #576084.</title>
<updated>2002-09-22T08:21:45Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2002-09-22T08:21:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5877bc3dfd77533585dfd341b34897722ba1bf6e'/>
<id>urn:sha1:5877bc3dfd77533585dfd341b34897722ba1bf6e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Given the persistent id code a shot at a class before calling save_global().</title>
<updated>2002-07-16T20:02:15Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2002-07-16T20:02:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=634abb860729c6925fed275b149d8a570cc06c59'/>
<id>urn:sha1:634abb860729c6925fed275b149d8a570cc06c59</id>
<content type='text'>
Backported from the trunk.
</content>
</entry>
<entry>
<title>This commit was manufactured by cvs2svn to create branch</title>
<updated>2001-12-28T04:27:46Z</updated>
<author>
<name>cvs2svn</name>
<email>tools@python.org</email>
</author>
<published>2001-12-28T04:27:46Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=22768184cbbaa4bd6083c51c28183be7f4fc3d69'/>
<id>urn:sha1:22768184cbbaa4bd6083c51c28183be7f4fc3d69</id>
<content type='text'>
'release22-maint'.
</content>
</entry>
<entry>
<title>save(): Fix for SF bug #494904: Cannot pickle a class with a</title>
<updated>2001-12-19T16:56:54Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-12-19T16:56:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=950dce6f01039bae5efdb8eedbe9ad48d81d0488'/>
<id>urn:sha1:950dce6f01039bae5efdb8eedbe9ad48d81d0488</id>
<content type='text'>
metaclass, reported by Dan Parisien.

Objects that are instances of custom metaclasses, i.e. whose ob_type
is a subclass of PyType_Type, should be pickled the same as new-style
classes (objects whose ob_type is PyType_Type).  This can't be done
through the existing dispatch switches, and the __reduce__ trick
doesn't work for these, since it finds the unbound __reduce__ for
instances of the class (inherited from PyBaseObject_Type).  So check
explicitly using PyType_IsSubtype().
</content>
</entry>
<entry>
<title>Patch supplied by Burton Radons for his own SF bug #487390: Modifying</title>
<updated>2001-12-08T18:02:58Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-12-08T18:02:58Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=146483964e2e94b0d1709be438a1b86f75b5d730'/>
<id>urn:sha1:146483964e2e94b0d1709be438a1b86f75b5d730</id>
<content type='text'>
type.__module__ behavior.

This adds the module name and a dot in front of the type name in every
type object initializer, except for built-in types (and those that
already had this).  Note that it touches lots of Mac modules -- I have
no way to test these but the changes look right.  Apologies if they're
not.  This also touches the weakref docs, which contains a sample type
object initializer.  It also touches the mmap test output, because the
mmap type's repr is included in that output.  It touches object.h to
put the correct description in a comment.
</content>
</entry>
<entry>
<title>Use PyOS_snprintf() instead of sprintf().</title>
<updated>2001-11-28T21:49:51Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-11-28T21:49:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=179c48c60e2476643863313ee0e0aa01bf338ad9'/>
<id>urn:sha1:179c48c60e2476643863313ee0e0aa01bf338ad9</id>
<content type='text'>
</content>
</entry>
</feed>
