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 serhiy.storchaka
Recipients benjamin.peterson, brett.cannon, georg.brandl, ncoghlan, rhettinger, serhiy.storchaka, yselivanov
Date 2016-10-03.19:23:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1475522616.74.0.369918481264.issue28350@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2016-10-03 19:23:36serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, georg.brandl, rhettinger, ncoghlan, benjamin.peterson, yselivanov
2016-10-03 19:23:36serhiy.storchakasetmessageid: <1475522616.74.0.369918481264.issue28350@psf.upfronthosting.co.za>
2016-10-03 19:23:36serhiy.storchakalinkissue28350 messages
2016-10-03 19:23:36serhiy.storchakacreate