Skip to content

Get Python 3.13 to work#1692

Merged
rchiodo merged 7 commits intomicrosoft:mainfrom
rchiodo:rchiodo/fix_313
Oct 10, 2024
Merged

Get Python 3.13 to work#1692
rchiodo merged 7 commits intomicrosoft:mainfrom
rchiodo:rchiodo/fix_313

Conversation

@rchiodo
Copy link
Contributor

@rchiodo rchiodo commented Oct 9, 2024

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
Contributor Author

rchiodo commented Oct 9, 2024

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

Copy link
Member

@karthiknadig karthiknadig left a comment

Choose a reason for hiding this comment

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

Minor change

@rchiodo rchiodo requested a review from karthiknadig October 9, 2024 23:50
@rchiodo 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

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
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