MooMaster <[EMAIL PROTECTED]> writes: > I know how to write a regexp or method or whatever to do this, my main > question is *why* something like an isNumber() method is not baked > into the class.
Because that name wouldn't conform to PEP 8. (Also, and more importantly, because it's more correct to use it as input to creating a new object of the type you want, and catch the exception if it fails.) -- \ "Courage is resistance to fear, mastery of fear — not absence | `\ of fear." —Mark Twain, _Pudd'n'head Wilson_ | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list