Message277994
Currently string constants are interned if they consist of ASCII word characters ([0-9A-Za-z_]). But strings are tested only to the first null character. This is not problem for names, since they can't include null characters, but string constants that contains ASCII non-word characters after the null character passes this test.
Proposed simple patch fixes the testing function all_name_chars().
Other question: shouldn't PyUnicode_IsIdentifier() be used in 3.x? |
|
Date |
User |
Action |
Args |
2016-10-03 19:23:36 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, brett.cannon, georg.brandl, rhettinger, ncoghlan, benjamin.peterson, yselivanov |
2016-10-03 19:23:36 | serhiy.storchaka | set | messageid: <1475522616.74.0.369918481264.issue28350@psf.upfronthosting.co.za> |
2016-10-03 19:23:36 | serhiy.storchaka | link | issue28350 messages |
2016-10-03 19:23:36 | serhiy.storchaka | create | |
|