[New-bugs-announce] [issue25051] 'compile' refuses BOM.

Piotr report at bugs.python.org
Thu Sep 10 11:57:02 CEST 2015


New submission from Piotr:

Similar to Issue 679880

>>> compile(open("bom3.py").read(), "bom3.py", 'exec')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "bom3.py", line 1
    # coding: utf-8
      ^
SyntaxError: invalid character in identifier

----------
components: Unicode
files: bom3.py
messages: 250357
nosy: Karulis, ezio.melotti, haypo
priority: normal
severity: normal
status: open
title: 'compile' refuses BOM.
type: compile error
versions: Python 3.4
Added file: http://bugs.python.org/file40423/bom3.py

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


More information about the New-bugs-announce mailing list