How can I tell when a string is in fact a number?

Thomas Gagne tgagne at
Mon Nov 6 14:31:53 CET 2000

Wouldn't it make better sense to return a boolean?  Is it possible to modify
the String class to include a method, isNumber, that returns true or false?


More information about the Python-list mailing list