No meta-type in Python?
Erik Max Francis
max at alcyone.com
Sat Jan 13 13:36:21 EST 2001
Chris Ryland wrote:
> Just out of curiousity, why is there no <type 'type'> in Python?
>
> I.e., I'd expect type(Ellipsis) to be <type 'type'> rather than
> <type 'ellipsis'>.
There is:
max at charmaine:~% python
Python 2.0 (#5, Nov 10 2000, 21:47:15)
[GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> Ellipsis
Ellipsis
>>> type(Ellipsis)
<type 'ellipsis'>
>>> type(type(Ellipsis))
<type 'type'>
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ The revolution will not televised
\__/ Public Enemy
7 sisters productions / http://www.7sisters.com/
Web design for the future.
More information about the Python-list
mailing list