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

Add support for Python 3.11+ #55

Merged
merged 3 commits into from
Apr 12, 2023
Merged

Conversation

jpoppe
Copy link
Contributor

@jpoppe jpoppe commented Apr 12, 2023

In Python 3.11 the getsourcelines function has been removed from pdb, however, it is available from inspect.

There are multiple approaches to work around this, I have solved it with a try except clause I don't know if that's the preferred way ;)

jpoppe and others added 2 commits April 12, 2023 14:34
In Python 3.11 the `getsourcelines` function has been removed from `pdb`, it is available from `inspect` instead.

There are multiple approaches to work around this, I have solved it with a `try except` clause I don't know if that's the preferred way ;)
pdbr/_pdbr.py Outdated Show resolved Hide resolved
@cansarigol cansarigol merged commit bf64bbc into cansarigol:master Apr 12, 2023
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.

2 participants