Is there a function in Python that can be used to test if the value in
a string is an integer?  I had to make one up for myself and it looks
like this:

def isInt(s):
    try:
        i = int(s)
        return True
    except ValueError:
        return False
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to