cpython/Modules/clinic
Martin Panter e99e97762c Issue #25626: Change zlib to accept Py_ssize_t and cap to UINT_MAX
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.
2015-11-20 08:13:35 +00:00
..
_bz2module.c.h
_codecsmodule.c.h Issue #24824: Signatures of codecs.encode() and codecs.decode() now are 2015-08-09 12:23:08 +03:00
_cryptmodule.c.h
_cursesmodule.c.h
_datetimemodule.c.h
_dbmmodule.c.h
_elementtree.c.h Issue #19176: Fixed doctype() related bugs in C implementation of ElementTree. 2015-06-29 23:08:52 +03:00
_gdbmmodule.c.h
_lzmamodule.c.h
_opcode.c.h
_pickle.c.h Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5 2015-11-02 04:04:57 +00:00
_sre.c.h
_ssl.c.h
_tkinter.c.h
_weakref.c.h
_winapi.c.h
arraymodule.c.h
audioop.c.h
binascii.c.h
cmathmodule.c.h Issue #19543: Implementation of isclose as per PEP 485 2015-05-31 22:05:00 +03:00
fcntlmodule.c.h
grpmodule.c.h
md5module.c.h
posixmodule.c.h Issue #23738: Merge 3.4 into 3.5 2015-09-09 01:56:53 +00:00
pwdmodule.c.h
pyexpat.c.h Specify default values of semantic booleans in Argument Clinic generated signatures as booleans. 2015-05-30 11:30:39 +03:00
sha1module.c.h
sha256module.c.h
sha512module.c.h
signalmodule.c.h
spwdmodule.c.h
unicodedata.c.h
zlibmodule.c.h Issue #25626: Change zlib to accept Py_ssize_t and cap to UINT_MAX 2015-11-20 08:13:35 +00:00