[New-bugs-announce] [issue29226] Comment generates syntax error
Simon Grantham
report at bugs.python.org
Tue Jan 10 11:40:05 EST 2017
New submission from Simon Grantham:
Placing the word "coding:" in a hash tag comment in a file causes a syntax error. Eg:
~ $ cat tst.py
# coding: Wow! How odd!
~ $ python tst.py
File "tst.py", line 2
SyntaxError: encoding problem: Wow
~ $
----------
components: Interpreter Core
messages: 285129
nosy: sgrantham
priority: normal
severity: normal
status: open
title: Comment generates syntax error
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29226>
_______________________________________
More information about the New-bugs-announce
mailing list