Everything is an object in python - object class and type class
Rustom Mody
rustompmody at gmail.com
Tue Jun 2 12:14:33 EDT 2015
On Tuesday, June 2, 2015 at 8:38:42 PM UTC+5:30, Steven D'Aprano wrote:
> On Tue, 2 Jun 2015 09:40 pm, Rustom Mody wrote:
>
> > On Tuesday, June 2, 2015 at 4:57:31 PM UTC+5:30, Steven D'Aprano wrote:
> >> On Tue, 2 Jun 2015 08:36 pm, Eddilbert Macharia wrote:
> [...]
> >> > *** The instance of class type is a data type an instance of class
> >> > type. right ?
> >> >>>> type(type)
> >> > <class 'type'>
> >>
> >> type has many instances, not just one.
> >
> > Not sure what you are trying to emphasize by the 'not just one'
>
> The OP says "THE [emphasis added] instance of class type" -- type has more
> than one instance.
>
>
Ok
> > In particular the issubclass relation is transitive
> > Whereas the isinstance is not
>
> Why is that relevant?
One way of construing the emphasized plural was what I pointed out as not the case
∀x • isinstance(x,t)
-- true or t = object but not t = type
More information about the Python-list
mailing list