| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Hi @iritkatriel , do you think this needs to be reviewed by asyncio expert? |
Sorry, something went wrong.
|
Yes, ideally. |
Sorry, something went wrong.
|
@kumaraditya303 I hope I can have this in 3.14 because it's a demanding feature. Could you take a look at it and see if it's a reasonable approach? Thanks! |
Sorry, something went wrong.
| and e.msg == "'await' outside function" | ||
| ): | ||
| try: | ||
| self._exec_await(buffer, globals, locals) |
There was a problem hiding this comment.
I think this should be run without the exception from line 891 in the context
Sorry, something went wrong.
There was a problem hiding this comment.
I restructured the code as we know whether it is an await code during compile. The nice side effect is that we don't need to execute the code under the exception context.
Sorry, something went wrong.
|
How about adding these direct links to what you added in the docs |
Sorry, something went wrong.
|
What do you mean? The link is already in whatsnew entry. |
Sorry, something went wrong.
|
@iritkatriel do you have any other concerns about this PR? |
Sorry, something went wrong.
There was a problem hiding this comment.
looks good
Sorry, something went wrong.
|
Hi @iritkatriel , if you don't have any objections I'll merge this in a day or so :) |
Sorry, something went wrong.
Go for it. @kumaraditya303 has approved. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
I finally figured out how to support await in pdb without too much hack - we can make the breakpoint itself an awaitable, and everything is simply integrated into the system!
This PR introduced a new function pdb.set_trace_async which the users should await, and with that function, the users can do their awaits in th debugger!
📚 Documentation preview 📚: https://cpython-previews--132576.org.readthedocs.build/