[issue24000] More fixes for the Clinic mapping of converters to format units
Larry Hastings
report at bugs.python.org
Sun Apr 19 19:27:30 CEST 2015
Larry Hastings added the comment:
> Doesn't always zeroes == length?
"zeroes" requires "length", but "length" does not require "zeroes". As it happens all the format units supported by str always have both parameters either True or False. But the Py_UNICODE converter accepts "length" for format units u# and Z#, and doesn't support "zeroes".
I want the converters to accept common parameters. That will make comprehension easier for the casual reader. So I want to keep "length" as a separate parameter, even for str.
> So I think the support of encoding=True should be removed
> from Argument Clinic soon. [...] I think we should get rid
> of [length] in future.
I disagree. My goal with Argument Clinic is that third-party developers will use it to write extensions. And we don't know how many extension modules are using es, es#, et, et#, s#, y#, z#, u#, and U#. I don't think we can remove any of this functionality until 4.0.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24000>
_______________________________________
More information about the Python-bugs-list
mailing list