Type hierarchy

Pedro Werneck pedro.werneck at bol.com.br
Fri Jun 13 22:05:06 CEST 2003


> needs isinstance(o, int) or isinstance(o, long), or float... although

Maybe I'm wrong, but can't you use isinstance(o, (int, long, float)), for instance ?

And the benefits of such changes would be greater than the effort to do it ?




More information about the Python-list mailing list