[issue32469] Generator and coroutine repr could be more helpful

2018-06-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Isn't it too verbose? For comparison, the repr of function doesn't contain the file path and the line number. And the hexadecimal address in the middle looks distractive. -- components: +Interpreter Core type: -> enhancement versions: +Python 3.8

[issue32469] Generator and coroutine repr could be more helpful

2017-12-31 Thread Taras Matsyk
Taras Matsyk added the comment: I have added a pull request. Hope it makes sense and I've done everything correctly :) Happy New Year! -- nosy: +tarasmatsyk ___ Python tracker __

[issue32469] Generator and coroutine repr could be more helpful

2017-12-31 Thread Taras Matsyk
Change by Taras Matsyk : -- keywords: +patch pull_requests: +4942 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue32469] Generator and coroutine repr could be more helpful

2017-12-31 Thread Antoine Pitrou
New submission from Antoine Pitrou : Currently, a generator or coroutine's repr looks like this: >>> gen It could instead be something like: >>> gen (replace "suspended" with "running" or "closed" depending on the generator's status -- i.e. gi_running and gi_frame attributes) -- m