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 <rep...@bugs.python.org> <http://bugs.python.org/issue29226> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com