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 yselivanov
Recipients Ben.Darnell, Yury.Selivanov, asvetlov, gvanrossum, martin.panter, ncoghlan, python-dev, scoder, vstinner, yselivanov
Date 2015-06-30.21:54:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1435701269.42.0.0363744606241.issue24400@psf.upfronthosting.co.za>
In-reply-to
Content
> > isawaitable(), however, should continue using abc.Awaitable, since it only checks for __await__ presence on the type (or should we just drop it?)

> I'd really remove it. It's not referring to an actual type, so it doesn't fit the purpose of the inspect module. The fact that the only place where "collections.abc" is used in this module is in isawaitable() should be a clear indication that it's misplaced.

+1.

I added 'isawaitable()' before we decided to add ABCs, and now it is redundant (and we don't have isiterable, ishashable etc)

Ben, I saw that you're using isawaitable() in tornado, but it looks like you can easily switch the code to use Awaitable ABC, right?
History
Date User Action Args
2015-06-30 21:54:29yselivanovsetrecipients: + yselivanov, gvanrossum, ncoghlan, scoder, vstinner, asvetlov, Yury.Selivanov, python-dev, Ben.Darnell, martin.panter
2015-06-30 21:54:29yselivanovsetmessageid: <1435701269.42.0.0363744606241.issue24400@psf.upfronthosting.co.za>
2015-06-30 21:54:29yselivanovlinkissue24400 messages
2015-06-30 21:54:29yselivanovcreate