-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove # -*- coding: utf-8 -*-
?
#2099
Comments
This line is used by Emacs on some platforms. I see no benefit to removing it. |
Emacs knows when it loads a Python file that Python files are UTF-8 files, doesn't it? |
I guess this was removed in d31e0df, so I think this issue could be closed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Python 3, the default source file encoding is UTF-8. As far as the Python interpreter is concerned we could remove
# -*- coding: utf-8 -*-
.Yet the encoding declaration might be useful to some IDEs, especially on Windows which still seems to be enforcing Windows-1252 as the default encoding on "Western" locales. On the other hand, VS tends to write into UTF-8-BOM (with an initial BOM) so we're doomed anyway!
The text was updated successfully, but these errors were encountered: