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 pitrou
Recipients benjamin.peterson, pitrou, serhiy.storchaka, yselivanov
Date 2017-12-31.19:53:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1514750009.12.0.467229070634.issue32469@psf.upfronthosting.co.za>
In-reply-to
Content
Currently, a generator or coroutine's repr looks like this:

>>> gen
<coroutine object f at 0x7f86c9733790>

It could instead be something like:

>>> gen
<coroutine at 0x7f86c9733790, suspended, file "/home/antoine/cpython/default/Lib/logging/__init__.py", line 123, code getLogger>

(replace "suspended" with "running" or "closed" depending on the generator's status -- i.e. gi_running and gi_frame attributes)
History
Date User Action Args
2017-12-31 19:53:29pitrousetrecipients: + pitrou, benjamin.peterson, serhiy.storchaka, yselivanov
2017-12-31 19:53:29pitrousetmessageid: <1514750009.12.0.467229070634.issue32469@psf.upfronthosting.co.za>
2017-12-31 19:53:29pitroulinkissue32469 messages
2017-12-31 19:53:28pitroucreate