Message281783
PyUnicode_CompareWithASCIIString() never set an exception in 3.2 and earlier versions. Since 3.3 it sets an exception and returns -1 if the first argument is not ready Unicode object, but this was not documented until issue28701. Due to undocumenting this behavior many (if not all) callers don't check whether it returned an error.
Proposed patch restores old behavior of PyUnicode_CompareWithASCIIString(). |
|
Date |
User |
Action |
Args |
2016-11-26 15:48:34 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, ezio.melotti |
2016-11-26 15:48:34 | serhiy.storchaka | set | messageid: <1480175314.71.0.35688135657.issue28808@psf.upfronthosting.co.za> |
2016-11-26 15:48:34 | serhiy.storchaka | link | issue28808 messages |
2016-11-26 15:48:34 | serhiy.storchaka | create | |
|