[Tutor] isinstance versus 'is'?
Alan Gauld
alan.gauld at yahoo.co.uk
Tue Jul 5 20:28:32 EDT 2016
On 06/07/16 00:22, Alan Gauld via Tutor wrote:
>>>> type(c) is C
> True
>>>> type(d) is type(C)
> False
The last one should of course be
>>> type(d) is C
False
Apologies.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list