In article <mailman.9571.1234720024.3487.python-l...@python.org>,
 pyt...@bdurham.com wrote:

> What's the Pythonic way to determine if a string is a number? By
> number I mean a valid integer or float.

try:
   int(myString)
except ValueError:
   print "That's bogus, man"
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to