Carl Friedrich Bolz-Tereick <[email protected]> added the comment:
hah, this is "great":
>>> 𝕋𝕣𝕦𝕖 = 1
>>> globals()
{'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__':
<class '_frozen_importlib.BuiltinImporter'>, '__spec__': None,
'__annotations__': {}, '__builtins__': <module 'builtins' (built-in)>, 'True':
1}
The problem is that the lexer assumes that anything that is not ASCII cannot be
a keyword and lexes 𝕋𝕣𝕦𝕖 as an identifier.
----------
nosy: +Carl.Friedrich.Bolz
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue46555>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com