Everything is an object in python - object class and type class
Steven D'Aprano
steve at pearwood.info
Tue Jun 2 11:08:26 EDT 2015
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.
> In particular the issubclass relation is transitive
> Whereas the isinstance is not
Why is that relevant?
--
Steven
More information about the Python-list
mailing list