You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
assignee=Noneclosed_at=<Date2020-05-12.13:19:12.227>created_at=<Date2020-05-11.17:50:16.125>labels= ['interpreter-core', 'type-bug', '3.9']
title='str.isidentifier() does not work with non-BMP non-canonicalized strings on Windows'updated_at=<Date2020-05-12.17:27:57.214>user='https://github.com/serhiy-storchaka'
I am not sure that changes in bpo-39500 was correct. It is easier to catch a bug if crash consistently when you pass a non-canonicalized strings then if silently return a wrong result for specific input on particular platform.
Alternatively, you could reimplement correct handling of surrogate pairs in PyUnicode_IsIdentifier().