Message 246002 - Python tracker

Message246002

Author Ben.Darnell
Recipients Ben.Darnell, Yury.Selivanov, asvetlov, gvanrossum, martin.panter, ncoghlan, python-dev, scoder, vstinner, yselivanov
Date 2015-06-30.22:08:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1435702109.44.0.895063597111.issue24400@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, I can switch use the ABC instead, and I agree that it doesn't make sense to have the inspect method if it's going to be equivalent to the ABC.

I'm happy with the outcome here but AFAIK the original issue still stands: the Awaitable ABC is unusual in that `isinstance(x, Awaitable)` may produce different results than `issubclass(x.__class__, Awaitable)`. I'd like to see more explicit documentation of the facts that A) functools.singledispatch is not always equivalent to isinstance() and B) Awaitable is one case (the only one in the stdlib?) where this distinction occurs.
History
Date User Action Args
2015-06-30 22:08:29Ben.Darnellsetrecipients: + Ben.Darnell, gvanrossum, ncoghlan, scoder, vstinner, asvetlov, Yury.Selivanov, python-dev, martin.panter, yselivanov
2015-06-30 22:08:29Ben.Darnellsetmessageid: <1435702109.44.0.895063597111.issue24400@psf.upfronthosting.co.za>
2015-06-30 22:08:29Ben.Darnelllinkissue24400 messages
2015-06-30 22:08:29Ben.Darnellcreate