Message101257
$ 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.) |
|
Date |
User |
Action |
Args |
2010-03-18 10:43:01 | ned.deily | set | recipients:
+ ned.deily |
2010-03-18 10:43:01 | ned.deily | set | messageid: <1268908981.24.0.215404983461.issue8168@psf.upfronthosting.co.za> |
2010-03-18 10:42:59 | ned.deily | link | issue8168 messages |
2010-03-18 10:42:59 | ned.deily | create | |
|