|
|
|
|
|
by dguaraglia
3207 days ago
|
|
My favorite story about Python's handling of Unicode was when one of my coworkers did a hotfix for our Python website, wrote tests, confirmed everything worked as expected... but right before committing and pushing to production wrote a comment like: # Apparently we expect the field to be in this format ¯\_(ツ)_/¯ Right above the code he'd just fixed. Of course, the moment we pushed the update it brought production down, because the Python interpreter doesn't understand Unicode in source files unless you specify which encoding you are using. After that, "¯\_(ツ)_/¯" became a synonym for his name on our HipChat server, heh. |
|
In Python 3, source code files are assumed to be UTF-8.