Comparing variable types

Kill Bill bill at kill.com
Sun Oct 26 03:36:03 CET 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