[Python-3000] Support for PEP 3131
Ka-Ping Yee
python at zesty.ca
Fri May 25 11:50:07 CEST 2007
On Fri, 25 May 2007, [ISO-8859-1] "Martin v. Löwis" wrote:
> I don't think there is precedence in Python for such an informational
> error message.
SyntaxError: Non-ASCII character '\xd1' in file foo.py on line 2, but
no encoding declared; see http://www.python.org/peps/pep-0263.html for
details
> It is not pythonic to give an error in the case
> "I know what you want, and I could easily do it, but I don't feel
> like doing it, read these ten pages of text to learn more about the
> problem".
Python is not a DWIM language. That is one of its strengths. It is
Pythonic to give an error in the case "I could guess what this means,
but it might be a mistake. Please be clear about what you want."
-- ?!ng
More information about the Python-3000
mailing list