This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author levkivskyi
Recipients gvanrossum, levkivskyi, rhettinger, serhiy.storchaka, stutzbach, vstinner
Date 2017-03-05.16:03:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488729807.21.0.757874039404.issue29638@psf.upfronthosting.co.za>
In-reply-to
Content
> Are typing.ChainMap and others actually abstract classes?

They are abstract classes in the sense that they are instances of abc.ABCMeta. However, for some reasons inspect checks __flags__ attribute. The latter probably reflects the fact that Deque etc. do not have abstract methods (they still need to be instances of abc.ABCMeta because they need to be generic).

I don't think that we need to change behaviour of inspect because it could be backward incompatible. I would either make changes to refleak or typing (adding few more cleanups in either place).
History
Date User Action Args
2017-03-05 16:03:27levkivskyisetrecipients: + levkivskyi, gvanrossum, rhettinger, vstinner, stutzbach, serhiy.storchaka
2017-03-05 16:03:27levkivskyisetmessageid: <1488729807.21.0.757874039404.issue29638@psf.upfronthosting.co.za>
2017-03-05 16:03:27levkivskyilinkissue29638 messages
2017-03-05 16:03:26levkivskyicreate