isNumber? check
Peter Otten
__peter__ at web.de
Mon Sep 29 11:10:44 EDT 2003
Rob Hunter wrote:
> How do I check if a value is a number in Python?
>>> isinstance(1+1j, (float,int,long,complex))
True
Peter
More information about the Python-list
mailing list