How to check if a string "is" an int?

pinkfloydhomer at pinkfloydhomer at
Wed Dec 21 11:12:35 CET 2005

How do I check if a string contains (can be converted to) an int? I
want to do one thing if I am parsing and integer, and another if not.


More information about the Python-list mailing list