Message258957
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). |
|
Date |
User |
Action |
Args |
2016-01-26 14:08:31 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, hniksic, docs@python, Barun Parruck |
2016-01-26 14:08:30 | serhiy.storchaka | set | messageid: <1453817310.99.0.912695925173.issue26198@psf.upfronthosting.co.za> |
2016-01-26 14:08:30 | serhiy.storchaka | link | issue26198 messages |
2016-01-26 14:08:30 | serhiy.storchaka | create | |
|