8000 gh-83151: Make closure work on pdb by gaogaotiantian · Pull Request #111094 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-83151: Make closure work on pdb #111094

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

Merged
merged 13 commits into from
May 6, 2024
Merged
Prev Previous commit
Next Next commit
Merge branch 'main' into pdb-closure
  • Loading branch information
gaogaotiantian committed May 4, 2024
commit 9c68aef64e1bbe2ae41de3314b7a3e7c05d287a1
4 changes: 3 additions & 1 deletion Lib/pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
import dis
import code
import glob
import token
import types
import codeop
import pprint
Expand Down Expand Up @@ -687,7 +688,8 @@ def default(self, line):
buffer = line
if (code := codeop.compile_command(line + '\n', '<stdin>', 'single')) is None:
# Multi-line mode
with self._disable_tab_completion():
with self._disable_command_completion():
buffer = line
continue_prompt = "... "
while (code := codeop.compile_command(buffer, '<stdin>', 'single')) is None:
if self.use_rawinput:
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0