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

pinkfloydhomer at gmail.com pinkfloydhomer at gmail.com
Wed Dec 21 05:12:35 EST 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.

/David




More information about the Python-list mailing list