<snip> > > Don Arnold wrote: > > >>> def isInt(aString): > > try: > > int(aString) > > return True > > except: > > return False > > But note that int(3.14) => 3 ! Is that what you want? Is 3.14 an integer? > Nope: int(3.14) => 3, but int('3.14') raises an exception as intended. Don