Python Gotcha with Octal Numbers
Cameron Laird
claird at starbase.neosoft.com
Thu Feb 14 09:08:18 EST 2002
In article <c76ff6fc.0202131330.66bd9d93 at posting.google.com>,
John Machin <sjmachin at lexicon.net> wrote:
.
.
.
>I've been semi-bitten just in the last week; grabbed a table of data
>that included month numbers with leading zeroes and pasted it into a
>script -- the 08 and 09 caused a syntax error which puzzled me for a
>minute or two (I haven't needed to think about octal much since I
>worked on an ICL 1905 (24-bit words)). Fortunately no harm done.
.
.
.
This is a classic, by the way: build an application,
test it, put it into production, it makes people happy
for months, go on vacation, and it mysteriously halts
the system on the first Monday you're gone--during the
first week of August.
August is both a traditional vacation time, and the
eighth month.
--
Cameron Laird <Cameron at Lairds.com>
Business: http://www.Phaseit.net
Personal: http://starbase.neosoft.com/~claird/home.html
More information about the Python-list
mailing list