[Python-3000] Fwd: Re: Fwd: Re: Fwd: Re: Octal (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Mar 15 05:01:17 CET 2007


Raymond Hettinger wrote:

The worst part of the new user experience is encountering a SyntaxError. Because of the way we generate them, invalid syntax errors are not very informative

This seems like an argument for producing more informative error messages. Something like

Syntax error: Numeric literal with leading zeroes is ambiguous. Use 0t123 for an octal literal, or omit the leading zeroes for a decimal literal.

should make it pretty clear what the problem is and how to fix it.

-- Greg



More information about the Python-3000 mailing list