If a Python string variable has had either an integer, floating point number or a non-numeric string placed in it, is there a way to easily test the \"type\" of that value?<
Here is a short hand to do it without ast import
try: if len(str(int(decdata))) == len(decdata): return 'int' except Exception: return 'not int'
Of course 's' is the string you want to evaluate