[Tutor] a bug?

Karthik Gurumurthy karthikg@aztec.soft.net
Fri, 1 Feb 2002 23:57:13 +0530


>
> Would you consider the type returned by the 3rd line below to be an error?
 If so, how do I report it?  I am running Python on a Mac.
>>> type(type)
<type 'type'

>>

Quoting a mail from Alan:
....
I've been reading about metaclasses recently and came across
the following comment in an essay (by Guido?) which I thought
deserved an airing. The sad thing is that it does make sense
when you read it a few times...

" In core Python there is only one meta-type, the type ``type''
(types.TypeType), which is the type of all type objects, even
itself. "

;-)

The whole essay is at:

http://www.python.org/doc/essays/metaclasses/
.......

Hope that answers your question.

karthik.