FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Backport Pdb closure evaluation fix (list comprehension, generators) from Python 3.13 by krassowski · Pull Request #14933 · ipython/ipython · GitHub

Backport Pdb closure evaluation fix (list comprehension, generators) from Python 3.13 - #14933

Merged
krassowski merged 4 commits into
ipython:mainfrom
krassowski:pdb-closure-fix-backport
Jul 1, 2025
Merged

Backport Pdb closure evaluation fix (list comprehension, generators) from Python 3.13#14933
krassowski merged 4 commits into
ipython:mainfrom
krassowski:pdb-closure-fix-backport

Conversation

krassowski commented Jun 30, 2025
edited
Loading

Copy link
Copy Markdown
Member

Context

IPython already includes bits of Pdb code from Python itself, as documented in:

License
-------
Modified from the standard pdb.Pdb class to avoid including readline, so that
the command line completion of other programs which include this isn't
damaged.
In the future, this class will be expanded with improvements over the standard
pdb.
The original code in this file is mainly lifted out of cmd.py in Python 2.2,
with minor changes. Licensing should therefore be under the standard Python
terms. For details on the PSF (Python Software Foundation) standard license,
see:
https://docs.python.org/2/license.html
All the changes since then are under the same license as IPython.

I am taking a more cautious approach and separating the backport to a new file to make it easy to delete in the (near) future (1 year from now).

krassowski added this to the 9.4 milestone Jun 30, 2025

Copy link
Copy Markdown
Member Author

We could use the same approach (_exec_in_closure) to solve #62 altogether, but that will need more testing - we could do so in a follow-up PR..

krassowski marked this pull request as ready for review June 30, 2025 23:01
krassowski merged commit 2197228 into ipython:main Jul 1, 2025
krassowski deleted the pdb-closure-fix-backport branch July 1, 2025 08:04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

List comprehension problem

1 participant


Back | FazBrowse Home | New Git URL