Comparing variable types

Kill Bill bill at kill.com
Sat Oct 25 22:36:03 EDT 2003


type(i) == "<type 'float'>"
this always returns false.  How come?
type(i)returns <type 'float'> if i is a float so why isn't == working?






More information about the Python-list mailing list