On Tue, Dec 20, 2005 at 07:16:46PM +0530, Suresh Jeevanandam wrote: > s1 = '12e3' > s2 = 'junk' > Is there any other function which would return True for s1 and False > for s2. >
isinstance(12e3, (int, float)) -- Egbert Bouwman - Keizersgracht 197 II - 1016 DS Amsterdam - 020 6257991 ======================================================================== -- http://mail.python.org/mailman/listinfo/python-list