summaryrefslogtreecommitdiff
path: root/Modules/zlibmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #20437: Fixed 22 potential bugs when deleting objects references.Serhiy Storchaka2014-02-091-2/+1
|\
| * Issue #20437: Fixed 21 potential bugs when deleting objects references.Serhiy Storchaka2014-02-091-2/+1
| |
* | Issue #20489: Explicitly qualified expressions for default values in methods.Serhiy Storchaka2014-02-051-4/+4
| |
* | Issue #20326: Argument Clinic now uses a simple, unique signature toLarry Hastings2014-01-281-14/+14
| | | | | | | | | | | | | | | | | | | | annotate text signatures in docstrings, resulting in fewer false positives. "self" parameters are also explicitly marked, allowing inspect.Signature() to authoritatively detect (and skip) said parameters. Issue #20326: Argument Clinic now generates separate checksums for the input and output sections of the block, allowing external tools to verify that the input has not changed (and thus the output is not out-of-date).
* | Issue #20193: Fix commit r6f217456b9ba by including clinic/zlibmodule.c.h ↵Christian Heimes2014-01-271-1/+1
| | | | | | | | | | | | instead of zlibmodule.clinic.c
* | Issue #20193: The zlib module now uses Argument Clinic.Serhiy Storchaka2014-01-271-307/+196
| |
* | Issue #20390: Small fixes and improvements for Argument Clinic.Larry Hastings2014-01-251-6/+2
| |
* | Issue #20189: Four additional builtin types (PyTypeObject,Larry Hastings2014-01-241-10/+10
| | | | | | | | | | | | PyMethodDescr_Type, _PyMethodWrapper_Type, and PyWrapperDescr_Type) have been modified to provide introspection information for builtins. Also: many additional Lib, test suite, and Argument Clinic fixes.
* | Two minor Argument Clinic bugfixes: use the name of the class in theLarry Hastings2014-01-221-4/+5
| | | | | | | | | | docstring for __new__ and __init__, and always use "goto exit" instead of returning "NULL" for failure to parse (as _new__ and __init__ return ints).
* | Issue #20287: Argument Clinic's output is now configurable, allowingLarry Hastings2014-01-171-6/+2
| | | | | | | | delaying its output or even redirecting it to a separate file.
* | Issue #20226: Major improvements to Argument Clinic.Larry Hastings2014-01-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * You may now specify an expression as the default value for a parameter! Example: "sys.maxsize - 1". This support is intentionally quite limited; you may only use values that can be represented as static C values. * Removed "doc_default", simplified support for "c_default" and "py_default". (I'm not sure we still even need "py_default", but I'm leaving it in for now in case a use presents itself.) * Parameter lines support a trailing '\\' as a line continuation character, allowing you to break up long lines. * The argument parsing code generated when supporting optional groups now uses PyTuple_GET_SIZE instead of PyTuple_GetSize, leading to a 850% speedup in parsing. (Just kidding, this is an unmeasurable difference.) * A bugfix for the recent regression where the generated prototype from pydoc for builtins would be littered with unreadable "=<object ...>"" default values for parameters that had no default value. * Converted some asserts into proper failure messages. * Many doc improvements and fixes.
* | Issue #20214: Fixed a number of small issues and documentation errors inLarry Hastings2014-01-121-6/+6
| | | | | | | | Argument Clinic (see issue for details).
* | Issue #19273: The marker comments Argument Clinic uses have been changedLarry Hastings2014-01-071-15/+15
| | | | | | | | to improve readability.
* | Issue #20142: Py_buffer variables generated by Argument Clinic are nowLarry Hastings2014-01-061-4/+4
| | | | | | | | initialized with a default value.
* | Issue #19659: Added documentation for Argument Clinic.Larry Hastings2014-01-041-5/+2
| |
* | Issue #19976: Argument Clinic METH_NOARGS functions now alwaysLarry Hastings2014-01-041-2/+15
| | | | | | | | take two parameters.
* | Issue #18294: Fix uint_converter() in zlibmodule.c, fix the "> UINT_MAX" checkVictor Stinner2014-01-031-5/+6
| |
* | Clinic: fix "self converters" with METH_NOARGS functions.Larry Hastings2013-11-241-41/+46
| |
* | Issue #19674: inspect.signature() now produces a correct signatureLarry Hastings2013-11-231-8/+9
| | | | | | | | for some builtins.
* | Issue #19730: Argument Clinic now supports all the existing PyArgLarry Hastings2013-11-231-23/+77
| | | | | | | | | | "format units" as legacy converters, as well as two new features: "self converters" and the "version" directive.
* | Close #18294: Fix the zlib module to make it 64-bit safeVictor Stinner2013-11-211-55/+125
| |
* | Argument Clinic: rename "self" to "module" for module-level functions.Larry Hastings2013-11-181-19/+21
| |
* | Issue #16612: Add "Argument Clinic", a compile-time preprocessorLarry Hastings2013-10-191-61/+122
| | | | | | | | for C files to generate argument parsing code. (See PEP 436.)
* | Issue #18408: Fix usage of _PyBytes_Resize()Victor Stinner2013-07-091-16/+8
| | | | | | | | | | _PyBytes_Resize(&v, new_size) sets v to NULL on error, so v cannot be used anymore. Replace "Py_DECREF(v); v = NULL;" with "Py_CLEAR(v);".
* | Issue #18408: Fix zlib.compressobj() to handle PyThread_allocate_lock() failureVictor Stinner2013-07-091-0/+4
| | | | | | | | (MemoryError).
* | Issue #18227: "Free" function of bz2, lzma and zlib modules has no return ↵Victor Stinner2013-07-071-1/+1
| | | | | | | | value (void)
* | Issue #18227: Use PyMem_RawAlloc() in bz2, lzma and zlib modulesVictor Stinner2013-07-071-8/+28
| |
* | Issue #18203: Replace malloc() with PyMem_Malloc() in Python modulesVictor Stinner2013-07-071-2/+2
| | | | | | | | | | Replace malloc() with PyMem_Malloc() when the GIL is held, or with PyMem_RawMalloc() otherwise.
* | Issue #9566: zlib: Explicit cast to unsigned int to fix a compiler warning ↵Victor Stinner2013-06-241-4/+4
| | | | | | | | on Windows x64
* | Issue #17917: Use PyModule_AddIntMacro() instead of PyModule_AddIntConstant()Charles-Francois Natali2013-05-201-14/+14
| | | | | | | | when applicable.
* | zlib: Explicit cast to fix a compiler warningVictor Stinner2013-05-071-1/+1
| |
* | Issue #15677: Document that zlib and gzip accept a compression level of 0 to ↵Nadeem Vawda2012-11-111-2/+2
|\ \ | |/ | | | | | | | | mean 'no compression'. Patch by Brian Brazil.
| * Issue #15677: Document that zlib and gzip accept a compression level of 0 to ↵Nadeem Vawda2012-11-111-2/+2
| |\ | | | | | | | | | | | | | | | mean 'no compression'. Patch by Brian Brazil.
| | * Issue #15677: Document that zlib and gzip accept a compression level of 0 to ↵Nadeem Vawda2012-11-111-3/+3
| | | | | | | | | | | | | | | | | | mean 'no compression'. Patch by Brian Brazil.
* | | Issue #16411: Fix a bug where zlib.decompressobj().flush() might try to ↵Nadeem Vawda2012-11-111-0/+2
|\ \ \ | |/ / | | | | | | | | | | | | access previously-freed memory. Patch by Serhiy Storchaka.
| * | Issue #16411: Fix a bug where zlib.decompressobj().flush() might try to ↵Nadeem Vawda2012-11-111-0/+2
| |\ \ | | |/ | | | | | | | | | | | | access previously-freed memory. Patch by Serhiy Storchaka.
| | * Issue #16411: Fix a bug where zlib.decompressobj().flush() might try to ↵Nadeem Vawda2012-11-111-0/+2
| | | | | | | | | | | | | | | | | | access previously-freed memory. Patch by Serhiy Storchaka.
* | | Issue #16350, part 2: Set unused_data (and unconsumed_tail) correctly in ↵Nadeem Vawda2012-11-111-44/+54
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | decompressobj().flush(). Additionally, fix a bug where a MemoryError in allocating a bytes object could leave the decompressor object in an invalid state (with its unconsumed_tail member being NULL). Patch by Serhiy Storchaka.
| * | Issue #16350, part 2: Set unused_data (and unconsumed_tail) correctly in ↵Nadeem Vawda2012-11-111-44/+54
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | decompressobj().flush(). Additionally, fix a bug where a MemoryError in allocating a bytes object could leave the decompressor object in an invalid state (with its unconsumed_tail member being NULL). Patch by Serhiy Storchaka.
| | * Issue #16350, part 2: Set unused_data (and unconsumed_tail) correctly in ↵Nadeem Vawda2012-11-111-45/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | decompressobj().flush(). Additionally, fix a bug where a MemoryError in allocating a bytes object could leave the decompressor object in an invalid state (with its unconsumed_tail member being NULL). Patch by Serhiy Storchaka.
* | | Issue #16350: Fix zlib decompressor handling of unused_data with multiple ↵Nadeem Vawda2012-11-051-6/+23
|\ \ \ | |/ / | | | | | | | | | | | | calls to decompress() after EOF. Patch by Serhiy Storchaka.
| * | Issue #16350: Fix zlib decompressor handling of unused_data with multiple ↵Nadeem Vawda2012-11-051-6/+23
| |\ \ | | |/ | | | | | | | | | | | | calls to decompress() after EOF. Patch by Serhiy Storchaka.
| | * Issue #16350: Fix zlib decompressor handling of unused_data with multiple ↵Nadeem Vawda2012-11-051-6/+23
| | | | | | | | | | | | | | | | | | calls to decompress() after EOF. Patch by Serhiy Storchaka.
* | | Issue #9566: Explicit downcast to fix compiler warnings on Win64Victor Stinner2012-10-311-2/+2
|/ /
* | Document the rest of zlib.compressobj()'s arguments.Nadeem Vawda2012-06-221-4/+17
| | | | | | | | Original patch by Jim Jewett; see issue 14684.
* | Tidy up comments from dd4f7d5c51c7 (zlib compression dictionary support).Nadeem Vawda2012-06-221-1/+1
| |
* | Issue #14684: Add support for predefined compression dictionaries to the ↵Nadeem Vawda2012-06-211-22/+96
| | | | | | | | | | | | zlib module. Original patch by Sam Rushing.
* | Issue #12306: Add ZLIB_RUNTIME_VERSION to the zlib module.Nadeem Vawda2011-09-121-0/+4
| | | | | | | | | | | | While we're at it, also document ZLIB_VERSION. Patch by Torsten Landschoff.
* | Merge: #12839: Fix crash in zlib module due to version mismatch.Nadeem Vawda2011-08-281-1/+7
|\ \ | |/ | | | | | | | | | | | | | | If the version of zlib used to compile the zlib module is incompatible with the one that is actually linked in, then calls into zlib will fail. This can leave attributes of the z_stream uninitialized, so we must take care to avoid segfaulting by trying to use an invalid pointer. Fix by Richard M. Tew.
| * Issue #12839: Fix crash in zlib module due to version mismatch.Nadeem Vawda2011-08-281-1/+7
| | | | | | | | | | | | | | | | | | If the version of zlib used to compile the zlib module is incompatible with the one that is actually linked in, then calls into zlib will fail. This can leave attributes of the z_stream uninitialized, so we must take care to avoid segfaulting by trying to use an invalid pointer. Fix by Richard M. Tew.