On 16/08/07, Dick Moores <[EMAIL PROTECTED]> wrote: > That's cool! However, it doesn't solve the problem in my original post. > > >>> t = 1,987,087,234,456 > File "<input>", line 1 > t = 1,987,087,234,456 > ^ > SyntaxError: invalid token
Hmm, yes. Any integer starting with a 0 is octal, which means that using '8' or '9' is a syntax error. Also, even if you don't get the syntax error, the numbers will come out differently. >>> decomma(1,024) 120 It'll be fixed in Python 3000 :-) -- John. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor