Earlier you described this suggestion as "a silly joke".
https://mail.python.org/pipermail/python-ideas/2018- May/050861.html
I think you were right then.
> I am merely defending the status quo.
> I demonstrate how the intended behavior can be achieved using features
> available in current Python versions.
Aside from the fact that font, editor and keyboard support for such
non-BMP Unicode characters is very spotty, it isn't the intended
behaviour.
As you point out, the intended behaviour is that obj.π’π and
obj.if ought to be identical. Since the later is a syntax error, so
should be the former.
> It is guaranteed to work by PEP-3131:
> https://www.python.org/dev/peps/pep-3131
>
> "All identifiers are converted into the normal form NFKC while parsing;
> comparison of identifiers is based on NFKC."
>
> NFKC normalization means spam must be considered the same identifier as
> π¬π©ππ¦ .
It's not the NFKC normalization that I'm questioning. Its the fact that
it is done too late to catch the use of a keyword.
--
Steve
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/