15 Jun
2004
15 Jun
'04
10:50 p.m.
Asad Habib wrote:
Hello. Does anyone know of a python function that returns a value based on whether or not its argument is an integer? Any help would be greatly appreciated. Thanks
from types import IntType type(x) = IntType or you can coerce it into an int: x = int(x) There are other approaches depending on what you want to achieve. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science