__class__ for 2.2 types

Larry wrbt at email.com
Thu Feb 7 15:40:23 EST 2002

hi, rookie here, I was hoping someone could explain to me why this happens:

Python 2.2 (#28, Dec 21 2001, 12:21:22) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> [].__class__
<type 'list'>
>>> int.__class__
<type 'type'>

why doesn't the int one return <type 'int'>? 

thanks in advance

More information about the Python-list mailing list