Re: How can 'type' be an instance of itself?

2009-05-28 Thread LittleGrasshopper
ance of 'type' representing > >>> that class is created by calling type.__init__. What really gets me is > >>> how can 'type' be an instance of itself. In order to create 'type' we > >>> would need to call type.__init__, but it seem

Re: How can 'type' be an instance of itself?

2009-05-28 Thread Terry Reedy
at when a class type(ob) simply looks up ob.__class__. For built-in classes, that is all it means. declaration is found in the code, an instance of 'type' representing that class is created by calling type.__init__. What really gets me is how can 'type' be an instance of i

Re: How can 'type' be an instance of itself?

2009-05-28 Thread LittleGrasshopper
an that when a class > > declaration is found in the code, an instance of 'type' representing > > that class is created by calling type.__init__. What really gets me is > > how can 'type' be an instance of itself. In order to create 'type' we &g

Re: How can 'type' be an instance of itself?

2009-05-28 Thread LittleGrasshopper
an that when a class > > declaration is found in the code, an instance of 'type' representing > > that class is created by calling type.__init__. What really gets me is > > how can 'type' be an instance of itself. In order to create 'type' we &g

Re: How can 'type' be an instance of itself?

2009-05-28 Thread Christian Heimes
ance of 'type' representing > that class is created by calling type.__init__. What really gets me is > how can 'type' be an instance of itself. In order to create 'type' we > would need to call type.__init__, but it seems at this point it > wouldn't e

How can 'type' be an instance of itself?

2009-05-28 Thread LittleGrasshopper
ass is created by calling type.__init__. What really gets me is how can 'type' be an instance of itself. In order to create 'type' we would need to call type.__init__, but it seems at this point it wouldn't exist. Probably a dumb question, which I hope someone can explain