list vs. tuple [Re: len() should always return something]

Dr. Phillip M. Feldman pfeldman at
Fri Jul 24 22:30:12 EDT 2009

isinstance(x, (int, float, complex))

is certainly very compact, and does what I want.  Thanks!
View this message in context:
Sent from the Python - python-list mailing list archive at

More information about the Python-list mailing list