[New-bugs-announce] [issue40596] str.isidentifier() does not work with non-BMP non-canonicalized strings on Windows

Serhiy Storchaka report at bugs.python.org
Mon May 11 13:50:16 EDT 2020


New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:

>>> import _testcapi
>>> u = '\U0001d580\U0001d593\U0001d58e\U0001d588\U0001d594\U0001d589\U0001d58a'
>>> u.isidentifier()
True
>>> _testcapi.unicode_legacy_string(u).isidentifier()
False

----------
components: Interpreter Core
messages: 368637
nosy: serhiy.storchaka, vstinner
priority: normal
severity: normal
status: open
title: str.isidentifier() does not work with non-BMP non-canonicalized strings on Windows
type: behavior
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40596>
_______________________________________


More information about the New-bugs-announce mailing list