This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ned.deily
Recipients ned.deily
Date 2010-03-18.10:42:59
SpamBayes Score 1.8085e-07
Marked as misclassified No
Message-id <1268908981.24.0.215404983461.issue8168@psf.upfronthosting.co.za>
In-reply-to
Content
$ cat bom3.py
# coding: utf-8
print("BOM BOOM!")
$ file bom3.py 
bom3.py: UTF-8 Unicode (with BOM) text
$ python3.1
Python 3.1.1+ (r311:74480, Jan 20 2010, 00:37:31) 
[GCC 4.4.3 20100108 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import bom3
BOM BOOM!
>>> import py_compile
>>> py_compile.compile("bom3.py")
  File "bom3.py", line 1
    # coding: utf-8
      ^
SyntaxError: invalid character in identifier

The same test does not fail with python2.6.4.
(Same results on OS X.)
History
Date User Action Args
2010-03-18 10:43:01ned.deilysetrecipients: + ned.deily
2010-03-18 10:43:01ned.deilysetmessageid: <1268908981.24.0.215404983461.issue8168@psf.upfronthosting.co.za>
2010-03-18 10:42:59ned.deilylinkissue8168 messages
2010-03-18 10:42:59ned.deilycreate