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

Dr. Phillip M. Feldman pfeldman at verizon.net
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: http://www.nabble.com/len%28%29-should-always-return-something-tp24639361p24654347.html
Sent from the Python - python-list mailing list archive at Nabble.com.




More information about the Python-list mailing list