prep my types for 2.2?

Pete Shinners pete at shinners.org
Sat Nov 24 12:11:09 EST 2001


> Python will look at the type of your_type (which will be the type
> type), and then look at its tp_call slot
> (i.e. typeobject.c:type_call). That, in turn, will use tp_new.

this is where i start to get confused?
isn't the "Type type" the same for all type objects? for example..

	>>> type(int) is type(float)
	1

since this is both the same thing, how can i change the tp_call for only 
one of the types?

i was guessing there was some sort of new function slot for this, but 
the docs on all this are a little sparse.




More information about the Python-list mailing list