summaryrefslogtreecommitdiffstats
path: root/Modules/zlibmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #16764: Support keyword arguments to zlib.decompress(). Patch bySerhiy Storchaka2016-08-151-4/+4
| | | | Xiang Zhang.
* Issue #27130: Merge zlib 64-bit fixes from 3.5Martin Panter2016-07-231-387/+368
|\
| * Issue #27130: Fix handling of buffers exceeding UINT_MAX in “zlib” moduleMartin Panter2016-07-231-387/+368
| | | | | | | | Patch by Xiang Zhang.
* | - Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-071-12/+12
|\ \ | |/ | | | | generated by Argument Clinic. Patch by Petr Viktorin.
| * Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-071-12/+12
| | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin.
* | Issue #26243: Only the level argument to zlib.compress() is keyword argumentSerhiy Storchaka2016-06-251-1/+2
| | | | | | | | now. The first argument is positional-only.
* | Issue #27164: Merge raw Deflate zdict support from 3.5Martin Panter2016-06-051-18/+44
|\ \ | |/
| * Issue #27164: Allow decompressing raw Deflate streams with predefined zdictMartin Panter2016-06-051-18/+44
| | | | | | | | Based on patch by Xiang Zhang.
* | Issue #5784: Merge zlib from 3.5Martin Panter2016-05-271-7/+10
|\ \ | |/
| * Issue #5784: Expand documentation and tests for zlib wbits parameterMartin Panter2016-05-271-7/+10
| | | | | | | | Based on documentation by AM Kuchling.
* | Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREFSerhiy Storchaka2016-04-101-2/+2
|\ \ | |/ | | | | in places where Py_DECREF was used.
| * Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREFSerhiy Storchaka2016-04-101-2/+2
| | | | | | | | in places where Py_DECREF was used.
* | Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-061-8/+8
|\ \ | |/
| * Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-061-8/+8
| |
* | Issue 26243: Forgot to update zlib doc strings in Argument ClinicMartin Panter2016-02-101-1/+1
| |
* | Issue #26243: zlib.compress() keyword argument support by Aviv PalivodaMartin Panter2016-02-101-9/+8
| |
* | Issue #26244: Merge zlib documentation from 3.5Martin Panter2016-02-031-3/+4
|\ \ | |/
| * Issue #26244: Clarify default zlib compression level in documentationMartin Panter2016-02-031-3/+4
| | | | | | | | Based on patch by Aviv Palivoda.
* | Issue #20440: More use of Py_SETREF.Serhiy Storchaka2015-12-271-12/+6
|\ \ | |/ | | | | | | This patch is manually crafted and contains changes that couldn't be handled automatically.
| * Issue #20440: More use of Py_SETREF.Serhiy Storchaka2015-12-271-12/+6
| | | | | | | | | | This patch is manually crafted and contains changes that couldn't be handled automatically.
* | Issue #25923: Added more const qualifiers to signatures of static and ↵Serhiy Storchaka2015-12-251-1/+1
|/ | | | private functions.
* Issue #20440: Massive replacing unsafe attribute setting code with specialSerhiy Storchaka2015-12-241-4/+2
| | | | macro Py_SETREF.
* Issue #25626: Change zlib to accept Py_ssize_t and cap to UINT_MAXMartin Panter2015-11-201-29/+29
| | | | | | | | | | | | | | The underlying zlib library stores sizes in “unsigned int”. The corresponding Python parameters are all sizes of buffers filled in by zlib, so it is okay to reduce higher values to the UINT_MAX internal cap. OverflowError is still raised for sizes that do not fit in Py_ssize_t. Sizes are now limited to Py_ssize_t rather than unsigned long, because Python byte strings cannot be larger than Py_ssize_t. Previously this could result in a SystemError on 32-bit platforms. This resolves a regression in the gzip module when reading more than UINT_MAX or LONG_MAX bytes in one call, introduced by revision 62723172412c.
* Issue #23944: Argument Clinic now wraps long impl prototypes at column 78.Larry Hastings2015-04-141-6/+9
|
* Issue #23501: Argumen Clinic now generates code into separate files by default.Serhiy Storchaka2015-04-031-2/+1
|
* Issue #8677: make the zlib module "ssize_t clean" for parsing parametersVictor Stinner2014-07-011-0/+1
|
* 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-261-307/+196
| |
* | Issue #20390: Small fixes and improvements for Argument Clinic.Larry Hastings2014-01-261-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-181-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-081-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);".