summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-07-23 03:02:07 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-07-23 03:02:07 (GMT)
commit84544c1020241afdd0422449d621ce9b762cb6d1 (patch)
treed2287295060570769c4ba4de6ef02b4c153e2c7a /Doc
parent524714eeda70de01046e3b4736516f41d7d11010 (diff)
downloadcpython-84544c1020241afdd0422449d621ce9b762cb6d1.zip
cpython-84544c1020241afdd0422449d621ce9b762cb6d1.tar.gz
cpython-84544c1020241afdd0422449d621ce9b762cb6d1.tar.bz2
Issue #27130: Fix handling of buffers exceeding UINT_MAX in “zlib” module
Patch by Xiang Zhang.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/howto/clinic.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/howto/clinic.rst b/Doc/howto/clinic.rst
index b04edea..7f275a4 100644
--- a/Doc/howto/clinic.rst
+++ b/Doc/howto/clinic.rst
@@ -1249,17 +1249,17 @@ Here's the simplest example of a custom converter, from ``Modules/zlibmodule.c``
/*[python input]
- class capped_uint_converter(CConverter):
- type = 'unsigned int'
- converter = 'capped_uint_converter'
+ class ssize_t_converter(CConverter):
+ type = 'Py_ssize_t'
+ converter = 'ssize_t_converter'
[python start generated code]*/
/*[python end generated code: output=da39a3ee5e6b4b0d input=35521e4e733823c7]*/
-This block adds a converter to Argument Clinic named ``capped_uint``. Parameters
-declared as ``capped_uint`` will be declared as type ``unsigned int``, and will
+This block adds a converter to Argument Clinic named ``ssize_t``. Parameters
+declared as ``ssize_t`` will be declared as type ``Py_ssize_t``, and will
be parsed by the ``'O&'`` format unit, which will call the
-``capped_uint_converter`` converter function. ``capped_uint`` variables
+``ssize_t_converter`` converter function. ``ssize_t`` variables
automatically support default values.
More sophisticated custom converters can insert custom C code to