Message245414
| 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 |
<1434418065.81.0.0861155583966.issue24400@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|