<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Modules/zlibmodule.c, branch v1.5</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/zlibmodule.c?h=v1.5</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/zlibmodule.c?h=v1.5'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>1997-12-18T05:21:29Z</updated>
<entry>
<title>Win32 treatment.</title>
<updated>1997-12-18T05:21:29Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-12-18T05:21:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9ec0f8b4050d7e324377bf35733779ef896ce7e0'/>
<id>urn:sha1:9ec0f8b4050d7e324377bf35733779ef896ce7e0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Apply two changes, systematically:</title>
<updated>1997-10-01T04:29:29Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-10-01T04:29:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0cb96de2699fa032ef1379ebb62a4dfb66ee5fde'/>
<id>urn:sha1:0cb96de2699fa032ef1379ebb62a4dfb66ee5fde</id>
<content type='text'>
(1) Use PyErr_NewException("module.class", NULL, NULL) to create the
    exception object.

(2) Remove all calls to Py_FatalError(); instead, return or
    ignore the errors -- the import code now checks PyErr_Occurred()
    after calling a module's init function, so it's no longer a
    fatal error for the initialization to fail.

Also did some small cleanups, e.g. removed unnecessary test for
"already initialized" from initfpectl(), and unified
initposix()/initnt().

I haven't checked this very thoroughly, so while the changes are
pretty trivial -- beware of untested code!
</content>
</entry>
<entry>
<title>Several changes:</title>
<updated>1997-09-04T23:39:23Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>1997-09-04T23:39:23Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cb914048907abe65ed2ada5cb9b638b394a39cc0'/>
<id>urn:sha1:cb914048907abe65ed2ada5cb9b638b394a39cc0</id>
<content type='text'>
1. Fix bug in (de)compression objects.  The final string resize used
zst.total_out to determine the length of the string, but the
(de)compression object will output data a little bit at a time, which
means total_out is not the string size.  Fix: save original value of
total_out at the start of the call.

2. Be sure to Py_DECREF the result value if you exit with an
exception.

3. Use PyInt_FromLong instead of Py_BuildValue

4. include more constants from the zlib header file

5. Use PyErr_Format instead of using a local buffer and sprintf.
</content>
</entry>
<entry>
<title>Plug small leaks: the [de]compress object itself was never freed.</title>
<updated>1997-09-03T18:14:30Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-09-03T18:14:30Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c3beda2f277a003deca2fd0f9b2ae8538d317087'/>
<id>urn:sha1:c3beda2f277a003deca2fd0f9b2ae8538d317087</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Added (binaryfunc) casts to function pointers in method lists.</title>
<updated>1997-08-28T21:21:22Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-08-28T21:21:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c1f088201f5a2a69b0d2045123a61d27406dfb8a'/>
<id>urn:sha1:c1f088201f5a2a69b0d2045123a61d27406dfb8a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Casts by Jack to shut up the Mac compiler.</title>
<updated>1997-08-18T15:31:24Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-08-18T15:31:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ed2554a396f5adc8a701d61539d1ed565baf9934'/>
<id>urn:sha1:ed2554a396f5adc8a701d61539d1ed565baf9934</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Several bug fixes.</title>
<updated>1997-08-14T21:06:42Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>1997-08-14T21:06:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=644c17d2afe6755b6fbc70e3c1da8b3a49b52a18'/>
<id>urn:sha1:644c17d2afe6755b6fbc70e3c1da8b3a49b52a18</id>
<content type='text'>
 -- initialize length to DEFAULTALLOC and not 0
 -- resize string before returning (to remove '\000' padding)

Also converted some compression routines to use PyString instead of
buffer.
</content>
</entry>
<entry>
<title>Many changes.</title>
<updated>1997-08-13T23:19:55Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>1997-08-13T23:19:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=41b9f00e8f314825a23f635308158cc1488b5c86'/>
<id>urn:sha1:41b9f00e8f314825a23f635308158cc1488b5c86</id>
<content type='text'>
Change default alloc size for uncompressing to 16K.

Remove comment about core dumps when an invalid window sizes is used.
This bug has been fixed in zlib 1.0.4.

Two new optional arguments to decompress, wbits and bufsize.  wbits
specifies the window size and bufsize specifies the initial output
string size.

In decompression code -- decompress and decompressobj methods -- use a
Python string (and _PyString_Resize) to collect the uncompressed
stream.  Replaces a separate buffer that was copied into a string.

Fix bug in decompress that caused it to always realloc the buffer when
it was finished decompressing.

Modernized handling of optional arguments to compressobj.

Updated doc strings.
</content>
</entry>
<entry>
<title>Must update the available space in the output buffer after</title>
<updated>1997-08-13T21:39:18Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>1997-08-13T21:39:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a74ef66ac82edd5a587606daef57ff6c26279280'/>
<id>urn:sha1:a74ef66ac82edd5a587606daef57ff6c26279280</id>
<content type='text'>
realloc. (Fixed in PyZlib_unflush.)
</content>
</entry>
<entry>
<title>Small changes (casts etc.) by Jack, for Mac compilation.</title>
<updated>1997-06-03T22:21:47Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-06-03T22:21:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=97b54574672beb34f21e05e231174533d4c460c7'/>
<id>urn:sha1:97b54574672beb34f21e05e231174533d4c460c7</id>
<content type='text'>
</content>
</entry>
</feed>
