This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author larry
Recipients larry, serhiy.storchaka, zach.ware
Date 2015-04-19.17:27:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1429464450.65.0.800193526425.issue24000@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2015-04-19 17:27:30larrysetrecipients: + larry, zach.ware, serhiy.storchaka
2015-04-19 17:27:30larrysetmessageid: <1429464450.65.0.800193526425.issue24000@psf.upfronthosting.co.za>
2015-04-19 17:27:30larrylinkissue24000 messages
2015-04-19 17:27:30larrycreate