isNumberType? a bug or a feature?

Xunning Yue xunningy at ece.arizona.edu
Tue Feb 12 02:40:24 EST 2002


Here is my situation with Python2.2 in Linux:
>>> from operator import *
>>> class dummy:
	pass

>>> t = dummy()
>>> type(t)
<type 'instance'>
>>> isNumberType(t)
1

Is this a bug or a feature of Python? Can anyone answer this?
Thanks



More information about the Python-list mailing list