[issue29226] encoding comment generates a SyntaxError

Jim Fasarakis-Hilliard report at bugs.python.org
Tue Jan 10 12:10:45 EST 2017


Jim Fasarakis-Hilliard added the comment:

If you use an encoding declaration the encoding must be recognized by Python. 

This is clearly stated in the documentation: https://docs.python.org/3/reference/lexical_analysis.html#encoding-declarations

----------
nosy: +Jim Fasarakis-Hilliard
title: Comment generates syntax error -> encoding comment generates a SyntaxError

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29226>
_______________________________________


More information about the Python-bugs-list mailing list