Skip to content

Commit 2630d18

Browse files
serhiy-storchakaerlend-aasland
authored andcommitted
bpo-20260: Implement non-bitwise unsigned int converters for Argument Clinic. (python/cpython#8434)
GitHub-Issue-Link: python/cpython#64459
1 parent 26b8c6f commit 2630d18

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Doc/howto/clinic.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,12 @@ converter::
878878
Write a pickled representation of obj to the open file.
879879
[clinic start generated code]*/
880880

881+
One advantage of real converters is that they're more flexible than legacy
882+
converters. For example, the ``unsigned_int`` converter (and all the
883+
``unsigned_`` converters) can be specified without ``bitwise=True``. Their
884+
default behavior performs range checking on the value, and they won't accept
885+
negative numbers. You just can't do that with a legacy converter!
886+
881887
Argument Clinic will show you all the converters it has
882888
available. For each converter it'll show you all the parameters
883889
it accepts, along with the default value for each parameter.

0 commit comments

Comments
 (0)