diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-07-23 03:39:49 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-07-23 03:39:49 (GMT) |
commit | 525a949251686a9f8c795f0166797700ac56b77b (patch) | |
tree | 5461fc3fefec32d2540d7ae2663154880865d204 /Doc/howto | |
parent | 5d0c59838223ce46a6e2b90a7d3ed48ee1ac481e (diff) | |
parent | 84544c1020241afdd0422449d621ce9b762cb6d1 (diff) | |
download | cpython-525a949251686a9f8c795f0166797700ac56b77b.zip cpython-525a949251686a9f8c795f0166797700ac56b77b.tar.gz cpython-525a949251686a9f8c795f0166797700ac56b77b.tar.bz2 |
Issue #27130: Merge zlib 64-bit fixes from 3.5
Diffstat (limited to 'Doc/howto')
-rw-r--r-- | Doc/howto/clinic.rst | 12 |
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 |