Skip to content

Commit

Permalink
bpo-20260: Implement non-bitwise unsigned int converters for Argument…
Browse files Browse the repository at this point in the history
… Clinic. (python/cpython#8434)

GitHub-Issue-Link: python/cpython#64459
  • Loading branch information
serhiy-storchaka authored and erlend-aasland committed Sep 26, 2023
1 parent 26b8c6f commit 2630d18
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Doc/howto/clinic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,12 @@ converter::
Write a pickled representation of obj to the open file.
[clinic start generated code]*/

One advantage of real converters is that they're more flexible than legacy
converters. For example, the ``unsigned_int`` converter (and all the
``unsigned_`` converters) can be specified without ``bitwise=True``. Their
default behavior performs range checking on the value, and they won't accept
negative numbers. You just can't do that with a legacy converter!

Argument Clinic will show you all the converters it has
available. For each converter it'll show you all the parameters
it accepts, along with the default value for each parameter.
Expand Down

0 comments on commit 2630d18

Please sign in to comment.