andrew at acooke.org
Tue Mar 3 18:58:32 CET 2009
either will work for what you want. people in the python list prefer
python. you only have to post a question once. this gives an idea of the
relative popularity and trends:
> I'm reading from a file that contains text like
> When I read the integer 5 I want to make sure it's an integer.
> Likewise, for strings, I want to make sure if something is indeed a
> string. So how do I check types in Python? I want to check following
> 1- integers
> 2- strings
> 3- testing types of a particular class
> 4- decimal/floats
> Please excuse my ignorance & enlighten me. I will really appreciate
> any help.
More information about the Python-list