On Jul 15, 2019, at 04:43, Adrien Ricocotam <[email protected]> wrote:
> 
> Oh ok !
> I tried with some unicodes (🔥) but it didn't work. So it's only a subset as 
> described in PEPs ?
> What about extending it ?

I’m pretty sure that the docs explain that the subset of characters that Python 
allows in identifiers is exactly the one Unicode recommends that languages 
allow in identifiers (except possibly in the lowest 127 characters, where any 
character allowed in Python 2.x is still allowed in 3.x, even if Unicode says 
otherwise).

This makes Python compatible with a whole lot of other languages, and 
language-agnostic tools and protocols that have similar notions of 
“identifier”. And it means Python can leave all the bikeshedding arguments to 
the Unicode committee instead of having to hash out the same arguments here. 
And it means Python automatically stays in sync with Unicode as they add new 
identifier characters just by upgrading to the newer version of Unicode, 
instead of having to go over the whole set of new characters each time to 
decide which ones should be identifiers.
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/2RRVK63XGWLNQYDG5AKIXQG5IFEQEJGR/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to