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

Get Python 3.13 to work #1692

Merged
merged 7 commits into from
Oct 10, 2024
Merged

Get Python 3.13 to work #1692

merged 7 commits into from
Oct 10, 2024

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

azure-pipelines/pipelines.yaml Outdated Show resolved Hide resolved
@rchiodo rchiodo merged commit f7d5df0 into microsoft:main Oct 10, 2024
19 of 21 checks passed
# 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