Message241522
> 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. |
|
Date |
User |
Action |
Args |
2015-04-19 17:27:30 | larry | set | recipients:
+ larry, zach.ware, serhiy.storchaka |
2015-04-19 17:27:30 | larry | set | messageid: <1429464450.65.0.800193526425.issue24000@psf.upfronthosting.co.za> |
2015-04-19 17:27:30 | larry | link | issue24000 messages |
2015-04-19 17:27:30 | larry | create | |
|