-
-
Notifications
You must be signed in to change notification settings - Fork 34k
bpo-32469: Improve representation of the coroutines #5068
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Unfortunately our records indicate you have not signed the CLA. For legal reasons we need you to sign this before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. Thanks again to your contribution and we look forward to looking at it! |
|
Note: SLA is in the progress. |
|
Hi @tarasmatsyk, I think you misunderstood the enhancement request. What I mean is the repr() of actual generator objects, for example: |
|
I'm also not sure what |
|
I see, anyway I would be happy to see the right solution or if no one comes up with it - I might be able to figure it out on my own. I will wait to get a response regarding |
|
GeneratorWrapper is what generator-like objects (like generators compiled with Cython) are wrapped with to become awaitables. |
Lib/types.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't just use 'coroutine' here, that would make it harder to debug things. I propose to use 'coroutine-like-object', which is a bit verbose but readable.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Current representation: <coroutine object f at 0x7f86c9733790> A goal is to display more information: <coroutine at 0x7f86c9733790, running, file "/home/antoine/cpython/default/Lib/logging/__init__.py", line 123, code getLogger>
|
An SLA is finally approved and all required changes have been made. If I missed anything - let me know, would be happy to update. A code phrase: |
|
Thanks for making the requested changes! @1st1: please review the changes made to this pull request. |
|
nice work! |
Current representation:
<coroutine object f at 0x7f86c9733790>
A goal is to display more information:
<coroutine at 0x7f86c9733790, running, file "/home/antoine/cpython/default/Lib/logging/init.py", line 123, code getLogger>
https://bugs.python.org/issue32469