Éric Araujo <mer...@netwok.org> added the comment:

Thanks for the detailed bug report.  I thought the normalization performed by 
the codec lookup system would convert 'cp-1252' to 'cp1252' (its “real” name, 
i.e. the name of the module implementing the codec), but it does not.  I’m +1 
to removing the hyphen in the example, then.

> Python raises the following exception:
> SyntaxError: encoding problem: with BOM
I reproduced this and it’s surprising.  Maybe there is a bug with error 
reporting here.

> Alternatively a totally other example as for Python 2.7 would be nice too
This file has seen different changes in 2.7 and 3.2, given that the default 
encoding is different in 3.x.  I’ll check the history and upload a patch here 
to get your feedback.

----------
assignee: docs@python -> eric.araujo
nosy: +eric.araujo

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13525>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to