<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python, 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/Python?h=2.1</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python?h=2.1'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2002-06-17T17:16:11Z</updated>
<entry>
<title>PyModule_AddObject():  Added missing exceptions.</title>
<updated>2002-06-17T17:16:11Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2002-06-17T17:16:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=78c4095d521ceb1625e4a36f3695c8546e620bbb'/>
<id>urn:sha1:78c4095d521ceb1625e4a36f3695c8546e620bbb</id>
<content type='text'>
Closes SF bug #523473.
</content>
</entry>
<entry>
<title>Fix SF #561858 Assertion with very long lists</title>
<updated>2002-06-01T18:27:34Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2002-06-01T18:27:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=63ab3e2bca1841bb728a558f8bc53218c5635379'/>
<id>urn:sha1:63ab3e2bca1841bb728a558f8bc53218c5635379</id>
<content type='text'>
if co_stacksize was &gt; 32767 (the maximum value
which can be stored in 16 bits (signed)),
the PyCodeObject would be written wrong.
So on the second import (reading the .pyc)
would cause a crash.

Since we can't change the PYC magic, we
go on (silently), but don't write the file.
This means everything will work, but
a .pyc will not be written and the file will need
to be parsed on each import.
</content>
</entry>
<entry>
<title>backport tim_one's patch:</title>
<updated>2002-04-30T04:01:21Z</updated>
<author>
<name>Anthony Baxter</name>
<email>anthonybaxter@gmail.com</email>
</author>
<published>2002-04-30T04:01:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=34d316c21ceacefe460a55878dea690d5ec16caf'/>
<id>urn:sha1:34d316c21ceacefe460a55878dea690d5ec16caf</id>
<content type='text'>
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/Python/bltinmodule.c:2.253
</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>Backport for 2.1.3 (if we ever release it; we may have to because</title>
<updated>2002-03-28T20:21:21Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-03-28T20:21:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ded18d634f2e1615b746dca2698d6a98ff63045d'/>
<id>urn:sha1:ded18d634f2e1615b746dca2698d6a98ff63045d</id>
<content type='text'>
this is what Zope 2 will be using in the foreseeable future).

Fix an issue that was reported in but unrelated to the main problem of
SF bug 535905 (Evil Trashcan and GC interaction).

The SETLOCAL() macro should not DECREF the local variable in-place and
then store the new value; it should copy the old value to a temporary
value, then store the new value, and then DECREF the temporary value.
This is because it is possible that during the DECREF the frame is
accessed by other code (e.g. a __del__ method or gc.collect()) and the
variable would be pointing to already-freed memory.

BUGFIX CANDIDATE!
</content>
</entry>
<entry>
<title>Backport revision 2.69.</title>
<updated>2002-01-15T21:14:38Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2002-01-15T21:14:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a472771dadd1e17a019f5effc8877ba20d914c56'/>
<id>urn:sha1:a472771dadd1e17a019f5effc8877ba20d914c56</id>
<content type='text'>
SF patch #471839: Bug when extensions import extensions (Shane Hathaway)

    When an extension imports another extension in its
    initXXX() function, the variable _Py_PackageContext is
    prematurely reset to NULL. If the outer extension then
    calls Py_InitModule(), the extension is installed in
    sys.modules without its package name. The
    manifestation of this bug is a "SystemError:
    _PyImport_FixupExtension: module &lt;package&gt;.&lt;extension&gt;
    not loaded".

    To fix this, importdl.c just needs to retain the old
    value of _Py_PackageContext and restore it after the
    initXXX() method is called. The attached patch does this.

    This patch applies to Python 2.1.1 and the current CVS.
</content>
</entry>
<entry>
<title>Attempted to update all the copyright notices (we're releasing this in</title>
<updated>2002-01-10T22:49:58Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2002-01-10T22:49:58Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a03453d944bfdc47c998ab6bffc5a0d3562247c0'/>
<id>urn:sha1:a03453d944bfdc47c998ab6bffc5a0d3562247c0</id>
<content type='text'>
2002!).  Does anyone know of a copyright blurb I missed?
</content>
</entry>
<entry>
<title>cosmetic change to add a commit message for the last commit, accidently</title>
<updated>2002-01-10T11:12:20Z</updated>
<author>
<name>Anthony Baxter</name>
<email>anthonybaxter@gmail.com</email>
</author>
<published>2002-01-10T11:12:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f226f408647044e531112ad16e95dba966d90970'/>
<id>urn:sha1:f226f408647044e531112ad16e95dba966d90970</id>
<content type='text'>
sent with empty message.

sheesh. Lucky I decided it was worth doing last minute complete compile
tests. cvs merge stupid on my part fixed that made solaris builds totally
fail.
</content>
</entry>
<entry>
<title>thread_pthread.h</title>
<updated>2002-01-10T11:10:18Z</updated>
<author>
<name>Anthony Baxter</name>
<email>anthonybaxter@gmail.com</email>
</author>
<published>2002-01-10T11:10:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ca1512cd83b29257023797c21acc55ccef34253c'/>
<id>urn:sha1:ca1512cd83b29257023797c21acc55ccef34253c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>backport of solaris thread patch, adding PTHREAD_SCOPE_SYSTEM support:</title>
<updated>2001-12-23T04:07:25Z</updated>
<author>
<name>Anthony Baxter</name>
<email>anthonybaxter@gmail.com</email>
</author>
<published>2001-12-23T04:07:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=64d8547dbc3dc1705cf216731e8ba5edd31d70b5'/>
<id>urn:sha1:64d8547dbc3dc1705cf216731e8ba5edd31d70b5</id>
<content type='text'>
  Improve threading on Solaris, according to SF patch #460269, submitted
  by bbrox@bbrox.org / lionel.ulmer@free.fr.

  This adds a configure check and if all goes well turns on the
  PTHREAD_SCOPE_SYSTEM thread attribute for new threads.

  This should remove the need to add tiny sleeps at the start of threads
  to allow other threads to be scheduled.

This is a semi-feature, but makes such a huge difference to the
performance of Zope on Solaris that it's worthwhile (well, imho).
</content>
</entry>
</feed>
