<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects, branch v2.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects?h=v2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects?h=v2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2002-03-28T20:36:50Z</updated>
<entry>
<title>Backport to 2.2.1:</title>
<updated>2002-03-28T20:36:50Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-03-28T20:36:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9ff1cf05fbcee1b98a4fc53ed12dc9b134a26f2f'/>
<id>urn:sha1:9ff1cf05fbcee1b98a4fc53ed12dc9b134a26f2f</id>
<content type='text'>
This is Neil's fix for SF bug 535905 (Evil Trashcan and GC interaction).

The fix makes it possible to call PyObject_GC_UnTrack() more than once
on the same object, and then move the PyObject_GC_UnTrack() call to
*before* the trashcan code is invoked.

BUGFIX CANDIDATE!
</content>
</entry>
<entry>
<title>backport tim_one's checkin of</title>
<updated>2002-03-25T13:21:41Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2002-03-25T13:21:41Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e99c99389c582b08a648d7f17823b2cce74e8842'/>
<id>urn:sha1:e99c99389c582b08a648d7f17823b2cce74e8842</id>
<content type='text'>
    revision 2.55 of complexobject.c

SF bug 533198:  Complex power underflow raises exception.
Konrad was too kind.  Not only did it raise an exception, the specific
exception it raised made no sense.  These are old bugs in complex_pow()
and friends:

1. Raising 0 to a negative power isn't a range error, it's a domain
   error, so changed c_pow() to set errno to EDOM in that case instead
   of ERANGE.

2. Changed complex_pow() to:

A. Used the Py_ADJUST_ERANGE2 macro to try to clear errno of a spurious
   ERANGE error due to underflow in the libm pow() called by c_pow().

B. Produced different exceptions depending on the errno value:
   i) For errno==EDOM, raise ZeroDivisionError instead of ValueError.
      This is for consistency with the non-complex cases 0.0**-2 and
      0**-2 and 0L**-2.
   ii) For errno==ERANGE, raise OverflowError.

Bugfix candidate.
</content>
</entry>
<entry>
<title>Martin's fix for</title>
<updated>2002-03-18T12:47:52Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2002-03-18T12:47:52Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c2a5e3c0f912fa282cfa80935ec53e5f0c23e849'/>
<id>urn:sha1:c2a5e3c0f912fa282cfa80935ec53e5f0c23e849</id>
<content type='text'>
[ 529104 ] broken error handling in unicode-escape

I presume this will need to be fixed on the trunk, too.

Later.
</content>
</entry>
<entry>
<title>Fix</title>
<updated>2002-03-18T12:43:33Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2002-03-18T12:43:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=36de099f047a8a4c069bd06b1f5edd38d6e626ad'/>
<id>urn:sha1:36de099f047a8a4c069bd06b1f5edd38d6e626ad</id>
<content type='text'>
[ 531306 ] ucs4 build horked.

Classic C mistake, I think.

Also squashed a couple of warnings in the ucs4 build.
</content>
</entry>
<entry>
<title>Fix for SF bug 528132 (Armin Rigo): classmethod().__get__() segfault</title>
<updated>2002-03-18T03:05:36Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-03-18T03:05:36Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=09f2187704cdacc4e3f86b357d110445541e6ad7'/>
<id>urn:sha1:09f2187704cdacc4e3f86b357d110445541e6ad7</id>
<content type='text'>
The proper fix is not quite what was submitted; it's really better to
take the class of the object passed rather than calling PyMethod_New
with NULL pointer args, because that can then cause other core dumps
later.

I also added a testcase for the fix to classmethods() in test_descr.py.

I'll apply this to 2.3 too.
</content>
</entry>
<entry>
<title>SF patch 530070: pydoc regression, from Martin and Guido.</title>
<updated>2002-03-17T18:57:07Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2002-03-17T18:57:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4d761f2443e3e60d386ff956c20cbc69b96d4511'/>
<id>urn:sha1:4d761f2443e3e60d386ff956c20cbc69b96d4511</id>
<content type='text'>
Change the way __doc__ is handled, to avoid blowing up on non-string
__doc__ values.
</content>
</entry>
<entry>
<title>Take Tim's work on file.truncate out of 2.2.1 again.</title>
<updated>2002-03-17T15:55:50Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2002-03-17T15:55:50Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=98305a0d3413977368478d8ec94fd1c4dba6e999'/>
<id>urn:sha1:98305a0d3413977368478d8ec94fd1c4dba6e999</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Backport Tim's work on getting file.truncate working better on Win32.</title>
<updated>2002-03-16T18:19:33Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2002-03-16T18:19:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fe69139f7e960c52aab54e2b6b1026ced68024d4'/>
<id>urn:sha1:fe69139f7e960c52aab54e2b6b1026ced68024d4</id>
<content type='text'>
"cvs diff | patch" managed to stick the NEWS item in the 2.2 final
section!  I wonder which silly man wrote patch &lt;wink&gt;.
</content>
</entry>
<entry>
<title>backport gvanrossum's checkin of</title>
<updated>2002-03-16T17:56:51Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2002-03-16T17:56:51Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=18d81afd2364a4f21ad4d5a63eb7604ff019229f'/>
<id>urn:sha1:18d81afd2364a4f21ad4d5a63eb7604ff019229f</id>
<content type='text'>
    revision 2.129 of typeobject.c

"Fix" for SF bug #520644: __slots__ are not pickled.

As promised in my response to the bug report, I'm not really fixing
it; in fact, one could argule over what the proper fix should do.
Instead, I'm adding a little magic that raises TypeError if you try to
pickle an instance of a class that has __slots__ but doesn't define or
override __getstate__.  This is done by adding a bozo __getstate__
that always raises TypeError.
</content>
</entry>
<entry>
<title>backport gvanrossum's checkin of</title>
<updated>2002-03-15T10:35:36Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2002-03-15T10:35:36Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=78f70880e2920bcb5b85ec3582ab4415fed0e265'/>
<id>urn:sha1:78f70880e2920bcb5b85ec3582ab4415fed0e265</id>
<content type='text'>
    revision 2.41 of moduleobject.c

Fix for SF bug #529050 - ModuleType.__new__ crash.

There were several places that assumed the md_dict field was always
set, but it needn't be.  Fixed these to be more careful.

I changed PyModule_GetDict() to initialize md_dict to a new dictionary
if it's NULL.

Bugfix candidate.
</content>
</entry>
</feed>
