Skip to content
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

Fix compatibility with Python 3.13 #664

Merged
merged 4 commits into from
Oct 18, 2024
Merged

Fix compatibility with Python 3.13 #664

merged 4 commits into from
Oct 18, 2024

Commits on Oct 15, 2024

  1. Drop copy-pasted set_continue, dispatch_line

    These were copy-pasted in from CPython in
    6065d5a
    According to https://bugs.python.org/issue16482, where the patch
    originated, all supported versions of Python now have the fix.
    Additionally, Python 3.13 has further modifications, which we
    probably shouldn't copy.
    inducer committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    6de377a View commit details
    Browse the repository at this point in the history
  2. Drop deletion of __exc_tuple__ from user_line

    This code dates from the very early days of Pudb, possibly copy-pasted
    from early pdb. No recent Python seems to have it, and on Py3.13 it
    is actively harmful, because its new frame locals proxy prohibits
    deletion of frame locals.
    inducer committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    6c12aec View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    41fba1a View commit details
    Browse the repository at this point in the history
  4. Clean up, fix set_trace

    This makes the code a bit easier to follow, and it uses a more
    appropriate _set_stopinfo in the pause case, instead of set_step.
    Use of set_step was causing set_trace to stop somewhere in the
    guts of bdb.
    
    Closes gh-663
    inducer committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    46d2324 View commit details
    Browse the repository at this point in the history