Skip to content

Get Python 3.13 to work - #1692

Merged
Rich Chiodo (rchiodo) merged 7 commits into
microsoft:mainfrom
rchiodo:rchiodo/fix_313
Oct 10, 2024
Merged

Rich Chiodo (rchiodo) merged 7 commits into
microsoft:mainfrom
rchiodo:rchiodo/fix_313

Conversation

@rchiodo

@rchiodo Rich Chiodo (rchiodo) commented Oct 9, 2024 •

Copy link
Copy Markdown
Contributor

There were a number of internal changes in CPython that were preventing 3.13 from working.

This change fixes all of those spots to use a public API or something that works in all versions.

Addresses #1689

@rchiodo

Copy link
Copy Markdown
Contributor Author

I believe this also fixes attach? Still verifying, but all the attach tests were passing for me locally.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor change

Comment thread azure-pipelines/pipelines.yaml Outdated
Comment thread src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame_utils.py Outdated
Comment thread src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame_utils.py Outdated
@rchiodo
Rich Chiodo (rchiodo) merged commit f7d5df0 into microsoft:main Oct 10, 2024
# Not currently supported in Python 3.12.
SUPPORT_ATTACH_TO_PID = not IS_PY312_OR_GREATER
# Not currently supported in Python 3.14.
SUPPORT_ATTACH_TO_PID = not IS_PY314_OR_GREATER

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we know that attach doesn't work in 3.14 for some reason?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might work, but the code in the attach logic explicitly only allows up to 3.13. This is just matching that logic.

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.

4 participants