<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects, branch 2.1</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=2.1</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects?h=2.1'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2002-04-30T03:58:47Z</updated>
<entry>
<title>backport tim_one's patch:</title>
<updated>2002-04-30T03:58:47Z</updated>
<author>
<name>Anthony Baxter</name>
<email>anthonybaxter@gmail.com</email>
</author>
<published>2002-04-30T03:58:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=88c646e99e6969b0933f2e4d8bedd5ef530f2412'/>
<id>urn:sha1:88c646e99e6969b0933f2e4d8bedd5ef530f2412</id>
<content type='text'>
[Re-did unicodeobject.c - it's changed a lot since 2.1 :) Pretty confident
that it's correct]

Repair widespread misuse of _PyString_Resize.  Since it's clear people
don't understand how this function works, also beefed up the docs.  The
most common usage error is of this form (often spread out across gotos):

	if (_PyString_Resize(&amp;s, n) &lt; 0) {
		Py_DECREF(s);
		s = NULL;
		goto outtahere;
	}

The error is that if _PyString_Resize runs out of memory, it automatically
decrefs the input string object s (which also deallocates it, since its
refcount must be 1 upon entry), and sets s to NULL.  So if the "if"
branch ever triggers, it's an error to call Py_DECREF(s):  s is already
NULL!  A correct way to write the above is the simpler (and intended)

	if (_PyString_Resize(&amp;s, n) &lt; 0)
		goto outtahere;

Bugfix candidate.

Original patch(es):
python/dist/src/Objects/fileobject.c:2.161
python/dist/src/Objects/stringobject.c:2.161
python/dist/src/Objects/unicodeobject.c:2.147
</content>
</entry>
<entry>
<title>Backport fixes for two nested scopes bugs.</title>
<updated>2002-04-20T18:21:29Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2002-04-20T18:21:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f599b7424db923cde691f733b79dd24ebe814419'/>
<id>urn:sha1:f599b7424db923cde691f733b79dd24ebe814419</id>
<content type='text'>
frameobject.c: make sure free and cell vars make it into locals, which
    makes eval work.

bltinmodule.c &amp; ceval.c: make sure a code object with free variables
    that is passed to exec or eval raises an exception.

Also duplicate the current trunk test suite in the 2.1 branch, except
for certain necessary changes: different warnings raised by 2.1, need
for __future__.
</content>
</entry>
<entry>
<title>Sort-of backport to 2.1.3 (if we ever release it) of the following.</title>
<updated>2002-03-28T20:41:02Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-03-28T20:41:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c44d823daac35b8f1f9a62ae54ae15dc81e03d3c'/>
<id>urn:sha1:c44d823daac35b8f1f9a62ae54ae15dc81e03d3c</id>
<content type='text'>
(The fix looks different, but does the same thing to the 2.1 GC code
that Neil's patch does to the 2.2 GC code.)

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>MvL's patch to fix up large file support. You still need to enable it</title>
<updated>2002-01-07T06:42:37Z</updated>
<author>
<name>Anthony Baxter</name>
<email>anthonybaxter@gmail.com</email>
</author>
<published>2002-01-07T06:42:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=011287854a180abf88effd5cc113e7575f5431a3'/>
<id>urn:sha1:011287854a180abf88effd5cc113e7575f5431a3</id>
<content type='text'>
manually with, e.g.:
    CC='gcc -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64' ./configure
</content>
</entry>
<entry>
<title>SF bug #439104: Tuple richcompares has code-typo.</title>
<updated>2001-07-06T17:48:47Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-07-06T17:48:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4c633be895cb4c63820b77173be93dd4bc60a9de'/>
<id>urn:sha1:4c633be895cb4c63820b77173be93dd4bc60a9de</id>
<content type='text'>
Symptom:  (1, 2, 3) &lt;= (1, 2) returned 1.
Also an isomorphic error was in the list richcompare code.
</content>
</entry>
<entry>
<title>Backport of Tim's checkin 2.57:</title>
<updated>2001-06-27T14:24:12Z</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2001-06-27T14:24:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7383e7a19cf471fa592f04db4be22844ba65d309'/>
<id>urn:sha1:7383e7a19cf471fa592f04db4be22844ba65d309</id>
<content type='text'>
SF bug 434186: 0x80000000/2 != 0x80000000&gt;&gt;1
i_divmod:  New and simpler algorithm.  Old one returned gibberish on most
boxes when the numerator was -sys.maxint-1.  Oddly enough, it worked in the
release (not debug) build on Windows, because the compiler optimized away
some tricky sign manipulations that were incorrect in this case.
Makes you wonder &lt;wink&gt; ...
</content>
</entry>
<entry>
<title>_PyTuple_Resize: guard against PyTuple_New() returning NULL, using Tim's</title>
<updated>2001-05-29T08:05:01Z</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2001-05-29T08:05:01Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=477bd2d1e436ef076a0c4a139fb8ed3e01ba138a'/>
<id>urn:sha1:477bd2d1e436ef076a0c4a139fb8ed3e01ba138a</id>
<content type='text'>
suggestion (modulo style).
</content>
</entry>
<entry>
<title>_PyTuple_Resize: take into account the empty tuple. There can be only one.</title>
<updated>2001-05-28T13:04:33Z</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2001-05-28T13:04:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fbed5be9e13144f80a30b90dbd670131fdaba51e'/>
<id>urn:sha1:fbed5be9e13144f80a30b90dbd670131fdaba51e</id>
<content type='text'>
Instead of raising a SystemError, just create a new tuple of the desired
size.

This fixes (at least) SF bug #420343.
</content>
</entry>
<entry>
<title>Backport Tim's checkin 2.84:</title>
<updated>2001-05-23T15:07:55Z</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2001-05-23T15:07:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=57ceb79406375f0df2237791cd330521bca2f0f6'/>
<id>urn:sha1:57ceb79406375f0df2237791cd330521bca2f0f6</id>
<content type='text'>
SF bug #422121 Insecurities in dict comparison.
Fixed a half dozen ways in which general dict comparison could crash
Python (even cause Win98SE to reboot) in the presence of kay and/or
value comparison routines that mutate the dict during dict comparison.
</content>
</entry>
<entry>
<title>Net result of Tim's checkins to stropmodule.c (2.78, 2.79, 2.80, 2.81),</title>
<updated>2001-05-23T14:38:53Z</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2001-05-23T14:38:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1648e53efce867513ffdbdbdc044b9a8a810b8ad'/>
<id>urn:sha1:1648e53efce867513ffdbdbdc044b9a8a810b8ad</id>
<content type='text'>
stringobject.c (2.114, 2.115) and test_strop.py (1.11, 1.12). Fixes
'replace' behaviour on systems on which 'malloc(0)' returns NULL (together
with previous checkins) and re-synchs the string-operation code in
stringobject.c and stropmodule.c, with the exception of 'replace', which has
the old semantics in stropmodule but the new semantics in stringobjects.
</content>
</entry>
</feed>
