3 ms·
Jesus Christ. What a nightmare! Glad to see you've done all the work. By the way, why did you choose to have invalid identifiers in the project README example a
by renewiltord 6y ago
Jesus Christ. What a nightmare! Glad to see you've done all the work. By the way, why did you choose to have invalid identifiers in the project README example and then say the example will work if you rename them? Surely that's better if you just renamed them.
It is a bit whimsical, though, so I understand marking Tokyo Tower by its Unicode emoji (what a thing to be in Unicode) for amusement.
- polm23 6y agoI 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.