BOM should be ignored by Python

Robin Becker robin at jessikat.demon.co.uk
Tue May 2 15:47:53 CEST 2000


In article <_lAP4.14253$HG1.387165 at nnrp1.uunet.ca>, Warren Postma
<embed at geocities.com> writes
>
>> I believe this was discussed on python-dev, and decided that Python itself
>> should not handle BOM markers at all - simply leave them to the app.
>
>Python IS an app though. If the app named Python is going to live with UTF
>source
>editors, then Python must become aware of unicode when reading it's own .py
>source
>code files.  Is python ever going to handle source code in Unicode?
>
>A cautious first step would be  UTF-8 "acceptance".  Handling a python
>source
>file (.py) differently, not changing open(). Actually, new open() type
>function (uopen() ?) would be nice, that has all the semantics of Unicode
>handled by the file objects created by the uopen() call.
>
>Warren
>
>
>
Python is a language. It specifies what lexical space its sources should
live in. Please don't let's define the language in plain ascii even
though some of the constants may live in unicode land.
-- 
Robin Becker



More information about the Python-list mailing list