Author serhiy.storchaka
Recipients Barun Parruck, docs@python, hniksic, serhiy.storchaka
Date 2016-01-26.14:08:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1453817310.99.0.912695925173.issue26198@psf.upfronthosting.co.za>
In-reply-to
Content
Proposed patch fixes minor bugs in Python/getargs.c:

1. Replaces TypeError with confusing error message for buffer overflow for "es#" and "et#" format units to ValueError with correct error message. Due to the risk to break working code, may be we will left TypeError in maintained releases, but error message should be fixed in any case.

2. Replaces all other TypeError with confusing error message to SystemError with correct error message. All this errors are programming errors (incorrect use of PyArg_Parse* functions) and aren't occurred in valid extensions.

3. Fixes error messages for "k" and "K" format units.

4. Fixes error messages for "es" and "et" format units.

5. Fixes error messages for "compat" mode (looks as this mode is not used and can be freely removed in Python 3).
History
Date User Action Args
2016-01-26 14:08:31serhiy.storchakasetrecipients: + serhiy.storchaka, hniksic, docs@python, Barun Parruck
2016-01-26 14:08:30serhiy.storchakasetmessageid: <1453817310.99.0.912695925173.issue26198@psf.upfronthosting.co.za>
2016-01-26 14:08:30serhiy.storchakalinkissue26198 messages
2016-01-26 14:08:30serhiy.storchakacreate