4 ms·
I originally wrote that bit of code for a code screenshot, and actually thought it would work since I heard Python had added support for Unicode variable names.
by polm23 6y ago
I originally wrote that bit of code for a code screenshot, and actually thought it would work since I heard Python had added support for Unicode variable names. Shortly afterwards I realized it was invalid, but people seemed to like it so I kept it around. I probably should change it so people have something to copy/paste though...
- oblvious-earth 6y agoPython does support Unicode Variable names but only for characters which represent written languages: https://python-3-for-scientists.readthedocs.io/en/latest/python3_features.html#unicode-variable-names https://python-3-for-scientists.readthedocs.io/en/latest/pyt... Specifics here: https://www.python.org/dev/peps/pep-3131/#specification-of-language-changes https://www.python.org/dev/peps/pep-3131/#specification-of-l... So no emojis alas.