<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Modules/zlibmodule.c, branch 2.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/Modules/zlibmodule.c?h=2.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/zlibmodule.c?h=2.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2002-04-19T14:59:08Z</updated>
<entry>
<title>[backport bug fix from the trunk]</title>
<updated>2002-04-19T14:59:08Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2002-04-19T14:59:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5ea334ed7a65937e94f642004a0aaece3a5d4c33'/>
<id>urn:sha1:5ea334ed7a65937e94f642004a0aaece3a5d4c33</id>
<content type='text'>
Fix SF #544995 (zlib crash on second flush call)
Bug fix by mhammond.

Bug fix candidate for 2.2, not present in 2.1.
</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>Added missing cast.</title>
<updated>2001-10-23T22:29:06Z</updated>
<author>
<name>Jack Jansen</name>
<email>jack.jansen@cwi.nl</email>
</author>
<published>2001-10-23T22:29:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=72af01aac6ccf6b7b3407e0e6c5f4e11ff101d92'/>
<id>urn:sha1:72af01aac6ccf6b7b3407e0e6c5f4e11ff101d92</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove unused convenience routine.</title>
<updated>2001-10-17T13:32:02Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-10-17T13:32:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=771f9146d5c29f8c059ebaad42ce49472ed48e0c'/>
<id>urn:sha1:771f9146d5c29f8c059ebaad42ce49472ed48e0c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Simplify and regularize docstrings.  Also reformat so that each docstring</title>
<updated>2001-10-17T04:16:15Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-10-17T04:16:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=adbd35bbccd170acf1a57b582786f5e753934508'/>
<id>urn:sha1:adbd35bbccd170acf1a57b582786f5e753934508</id>
<content type='text'>
line fits in reasonable screen width.
</content>
</entry>
<entry>
<title>Trimmed trailing whitespace.</title>
<updated>2001-10-17T03:57:20Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-10-17T03:57:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=977e540e4b05057c843fa860c401002da21baba8'/>
<id>urn:sha1:977e540e4b05057c843fa860c401002da21baba8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Removed more comments that didn't make much sense.</title>
<updated>2001-10-17T03:56:45Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-10-17T03:56:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b1a37c019687bbdd7222feb716bd38aa3f9cc342'/>
<id>urn:sha1:b1a37c019687bbdd7222feb716bd38aa3f9cc342</id>
<content type='text'>
Made the presence/absence of a semicolon after macros consistent.
</content>
</entry>
<entry>
<title>Removed obsolete comments about confused string refcount tricks (Jeremy</title>
<updated>2001-10-17T03:43:54Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-10-17T03:43:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6605c64c83633fbeff4bcd59d98d74871f34922a'/>
<id>urn:sha1:6605c64c83633fbeff4bcd59d98d74871f34922a</id>
<content type='text'>
removed the tricks).

Changed the ENTER/LEAVE_ZLIB macros so as not to create a new block (a
new block is neither necessary nor helpful).
</content>
</entry>
<entry>
<title>Undo needless INCREF chicanery introduced by SF patch #450702.</title>
<updated>2001-10-16T23:26:08Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-10-16T23:26:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ba3dd9990fecb9b397169d254eb6dab6af8c86ec'/>
<id>urn:sha1:ba3dd9990fecb9b397169d254eb6dab6af8c86ec</id>
<content type='text'>
    Apparently this patch (rev 2.41) replaced all the good old "s#"
    formats in PyArg_ParseTuple() with "S".  Then it did
    PyString_FromStringAndSize() to get back the values setup by the
    "s#" format.  It also incref'd and decref'd the string obtained by
    "S" even though the argument tuple had a reference to it.

Replace PyString_AsString() calls with PyString_AS_STRING().

    A good rule of thumb -- if you never check the return value of
    PyString_AsString() to see if it's NULL, you ought to be using the
    macro &lt;wink&gt;.
</content>
</entry>
<entry>
<title>Simplify and fix error handling for most cases.</title>
<updated>2001-10-16T23:02:32Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-10-16T23:02:32Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9d620d018c64affba26debf4397cb86c6767714e'/>
<id>urn:sha1:9d620d018c64affba26debf4397cb86c6767714e</id>
<content type='text'>
Many functions used a local variable called return_error, which was
initialized to zero.  If an error occurred, it was set to true.  Most
of the code paths checked were only executed if return_error was
false.  goto is clearer.

The code also seemed to be written under the curious assumption that
calling Py_DECREF() on a local variable would assign the variable to
NULL.  As a result, more of the error-exit code paths returned an
object that had a reference count of zero instead of just returning
NULL.  Fixed the code to explicitly assign NULL after the DECREF.

A bit more reformatting, but not much.

XXX Need a much better test suite for zlib, since it the current tests
don't exercise any of this broken code.
</content>
</entry>
</feed>
