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
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to