As luck would have it, isnumber is a built-in Python function: >>> isnumber(1) True >>> isnumber(1.0) True >>> isnumber('1') False
Michael -- Michael D. Hartl, Ph.D. Chief Technology Officer http://quarksports.com/ -- http://mail.python.org/mailman/listinfo/python-list