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 Dutcho, enedil, gvanrossum, levkivskyi, lukasz.langa, rhettinger
Date 2018-08-28.13:20:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1535462427.44.0.56676864532.issue34498@psf.upfronthosting.co.za>
In-reply-to
Content
> Could we revert abstract types in `typing` to respond True to `isinstance(..., type)` again?

No, making them classes will cause significant performance penalty (I don't remember numbers now, but importing `typing` may be twice slower). Plus this will re-introduce some bugs and inconsistencies.

> I don't want singledispatch, or any other library like it, to have to special-case typing.

I didn't propose this. I proposed to allow all objects that pretend to be types but are not actually instances of `type`.
History
Date User Action Args
2018-08-28 13:20:27levkivskyisetrecipients: + levkivskyi, gvanrossum, rhettinger, lukasz.langa, Dutcho, enedil
2018-08-28 13:20:27levkivskyisetmessageid: <1535462427.44.0.56676864532.issue34498@psf.upfronthosting.co.za>
2018-08-28 13:20:27levkivskyilinkissue34498 messages
2018-08-28 13:20:27levkivskyicreate