5 ms·
Well Python 2 "protects" you from silly things like that and throws a syntax error. In [4]: class АnotherClass(): ...: pass File "<ipython-input
by gegenschall 12y ago
Well Python 2 "protects" you from silly things like that and throws a syntax error.
In [4]: class АnotherClass():
...: pass
File "<ipython-input-4-ad6e67ea5e19>", line 1
class АnotherClass():
^
SyntaxError: invalid syntax
- marcosdumay 12y agoAdd a file encoding directive[1] at the begining of your file, and you can shoot at as many of your feet as you want. [1] PEP 0263: https://www.python.org/dev/peps/pep-0263/ https://www.python.org/dev/peps/pep-0263/
- rspeer 12y agoIn Python 2 that only works within string literals, though.