Python Gotcha with Octal Numbers

Paul Hughett hughett at mercur.uphs.upenn.edu
Wed Feb 13 11:27:08 EST 2002


John W. Baxter <jwbaxter at spamcop.net> wrote:
: In article <mailman.1013611523.15053.python-list at python.org>, Simon

: Did the elves at AT&T pick up the "leading 0 means octal" from
: something earlier, or did they invent this stupidity themselves?

: Either way, we're stuck with it.

It could be worse.  In one language I worked in, "10" was an octal integer,
"10." was a decimal integer, and "10.0" was floating point.  Nice language
otherwise, though.

Paul Hughett



More information about the Python-list mailing list