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 martin.panter
Recipients Ben.Darnell, Yury.Selivanov, asvetlov, gvanrossum, martin.panter, ncoghlan, scoder, vstinner, yselivanov
Date 2015-06-16.01:27:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
One problem with 2015-06-10’s patch (x86-64 Linux):

>>> async def f():
...     pass
>>> c = f()
>>> w = c.__await__()
>>> w
<coroutine_wrapper object at 0x7f1013130b88>
>>> dir(w)
TypeError: object does not provide __dir__
>>> type(w)
Segmentation fault (core dumped)
[Exit 139]

Strangely, if I call w.__dir__() first, everything seems to start behaving properly.
Date User Action Args
2015-06-16 01:27:46martin.pantersetrecipients: + martin.panter, gvanrossum, ncoghlan, scoder, vstinner, asvetlov, Yury.Selivanov, Ben.Darnell, yselivanov
2015-06-16 01:27:45martin.pantersetmessageid: <>
2015-06-16 01:27:45martin.panterlinkissue24400 messages
2015-06-16 01:27:44martin.pantercreate