New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python 2.3 encoding parsing bug #39944
Comments
The documentation for encoding lines at C:\Python23\Doc\Python-Docs-2.3.1\whatsnew\section- states: "Encodings are declared by including a specially In fact, contrary to the implication, the Python 2.3 # -- coding: <encoding> -- For example, Python improperly scans the following line #@+leo-ver=4-encoding=iso-8859-1. and reports that iso-8859-1. (note trailing dot) is an The workaround for my app is to precede this line with # -- coding: iso-8859-1 -- This makes Python 2.3 happy. To make myself perfectly clear: Python has absolutely # -- coding: <encoding> -- Python 2.3.1 Edward K. Ream |
Logged In: YES Python is behaving correctly and according to the PEP. The encoding declaration parser will look for "coding[:=][ Does leo need the trailing dot in the comment ? |
Logged In: YES Actually, what Python should (and does) really do is to http://www.python.org/doc/current/ref/encodings.html This gives the precise regexp that is used. Differences between the language spec and the implementation |
Logged In: YES
In general, Leo needs to know where the encoding
In other words, no previous 4.x version of Leo (including 4.1 I am most upset that the Pep said one thing in English and Edward |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: