An error occurred fetching the project authors.
- 17 Oct, 2001 4 commits
-
-
Tim Peters authored
line fits in reasonable screen width.
-
Tim Peters authored
-
Tim Peters authored
Made the presence/absence of a semicolon after macros consistent.
-
Tim Peters authored
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).
-
- 16 Oct, 2001 7 commits
-
-
Jeremy Hylton authored
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 <wink>.
-
Jeremy Hylton authored
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.
-
Jeremy Hylton authored
-
Jeremy Hylton authored
It sets a ZlibError exception, using the msg from the z_stream pointer if one is available.
-
Jeremy Hylton authored
When PyString_FromStringAndSize() and _PyString_Resize() fail, they set an exception. There's no need to set a new exception.
-
Jeremy Hylton authored
Consistently indent 4 spaces. Use whitespace around operators. Put braces in the right places.
-
Jeremy Hylton authored
Mostly by Toby Dickenson and Titus Brown. Add an optional argument to a decompression object's decompress() method. The argument specifies the maximum length of the return value. If the uncompressed data exceeds this length, the excess data is stored as the unconsumed_tail attribute. (Not to be confused with unused_data, which is a separate issue.) Difference from SF patch: Default value for unconsumed_tail is "" rather than None. It's simpler if the attribute is always a string.
-
- 09 Oct, 2001 1 commit
-
-
Martin v. Löwis authored
-
- 08 Sep, 2001 1 commit
-
-
Martin v. Löwis authored
-
- 07 Sep, 2001 1 commit
-
-
Martin v. Löwis authored
the module in multiple threads with a global lock.
-
- 22 Feb, 2001 1 commit
-
-
Andrew M. Kuchling authored
-
- 21 Feb, 2001 1 commit
-
-
Andrew M. Kuchling authored
* fixes the zlib decompress sync flush bug as reported in bug #124981 * avoids repeat calls to (in|de)flateEnd when destroying (de)compression objects * raises exception when allocating unused_data fails * fixes memory leak when allocating unused_data fails * raises exception when allocating decompress data fails * removes vestigial code from decompress flush now that decompression returns all available data * tidies code so object compress/decompress/flush routines are consistent
-
- 31 Jan, 2001 2 commits
-
-
Tim Peters authored
-
Mark Hammond authored
This involves changing the zlib build process to build zlib itself from sources, then use that library. Also updated are the comments to reflect the new official home of zlib, and add Windows specific notes regarding the build process.
-
- 09 Oct, 2000 1 commit
-
-
Andrew M. Kuchling authored
a Z_BUF_ERROR while decompressing. If it is, assume that this means the data being decompressed is bad and raise an exception, instead of just assuming that Z_BUF_ERROR always means that more space is required.
-
- 03 Aug, 2000 1 commit
-
-
Andrew M. Kuchling authored
-
- 21 Jul, 2000 1 commit
-
-
Thomas Wouters authored
and a couple of functions that were missed in the previous batches. Not terribly tested, but very carefully scrutinized, three times. All these were found by the little findkrc.py that I posted to python-dev, which means there might be more lurking. Cases such as this: long func(a, b) long a; long b; /* flagword */ { and other cases where the last ; in the argument list isn't followed by a newline and an opening curly bracket. Regexps to catch all are welcome, of course ;)
-
- 10 Jul, 2000 1 commit
-
-
Peter Schneider-Kamp authored
-
- 03 May, 2000 1 commit
-
-
Guido van Rossum authored
For more comments, read the patches@python.org archives. For documentation read the comments in mymalloc.h and objimpl.h. (This is not exactly what Vladimir posted to the patches list; I've made a few changes, and Vladimir sent me a fix in private email for a problem that only occurs in debug mode. I'm also holding back on his change to main.c, which seems unnecessary to me.)
-
- 06 Apr, 2000 1 commit
-
-
Guido van Rossum authored
(Mark Hammond.)
-
- 29 Feb, 2000 1 commit
-
-
Guido van Rossum authored
PyArg_ParseTuple() format string arguments as possible.
-
- 22 Dec, 1999 1 commit
-
-
Fred Drake authored
module dict if the inserted object isn't NULL (basic defensive programming!).
-
- 20 Dec, 1999 1 commit
-
-
Andrew M. Kuchling authored
-
- 12 Apr, 1999 1 commit
-
-
Guido van Rossum authored
-
- 07 Apr, 1999 1 commit
-
-
Guido van Rossum authored
Without this, if inflate() returned Z_BUF_ERROR asking for more output space, we would report the error; now, we increase the buffer size and try again, just as for Z_OK.
-
- 25 Mar, 1999 1 commit
-
-
Andrew M. Kuchling authored
is not an empty string, this means that you have arrived at the end of the stream of compressed data, and the contents of .unused_data are whatever follows the compressed stream.
-
- 22 Mar, 1999 1 commit
-
-
Andrew M. Kuchling authored
the end of loop was incorrect, and failed when the flushmode != Z_FINISH. Logic cleaned up and commented.
-
- 29 Jan, 1999 1 commit
-
-
Andrew M. Kuchling authored
decompressor object. This required adding a flag to the struct which is true if initialisation was completed; on object destruction, deflateEnd() is only called if the flag is true.
-
- 28 Jan, 1999 1 commit
-
-
Barry Warsaw authored
more severe ones.
-
- 06 Jan, 1999 1 commit
-
-
Jeremy Hylton authored
patch from Grzegorz Makarewicz & Rafal Smotrzyk.
-
- 21 Dec, 1998 2 commits
-
-
Jeremy Hylton authored
successfully)
-
Jeremy Hylton authored
checkin)
-
- 18 Dec, 1998 2 commits
-
-
Jeremy Hylton authored
NOTE: There is still a bug of some sort in the behavior of zlib. In at least one case, inflate returns Z_OK (which is typically interpreted to mean that more output space is needed) when it has finished inflating a buffer. This has been reported as a bug to the zlib maintainers; we may need to change the Python interface.
-
Fred Drake authored
string we wanted to resize is set to NULL. Don't Py_DECREF() those variables! (5 places)
-
- 04 Dec, 1998 1 commit
-
-
Guido van Rossum authored
on BeOS or Windows.
-
- 07 Jul, 1998 1 commit
-
-
Guido van Rossum authored
after a return).
-