Skip to content

Use PyFrame_GetLasti() #1352

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

Closed
wants to merge 1 commit into from
Closed

Use PyFrame_GetLasti() #1352

wants to merge 1 commit into from

Conversation

vstinner
Copy link

@vstinner vstinner commented Apr 8, 2022

Replace MyFrame_lasti() with PyFrame_GetLasti(): Python 3.11.0b1 adds
PyFrame_GetLasti().

Add pythoncapi_compat.h header file to get PyFrame_GetLasti() on
Python 3.10 and older. File copied from:
https://github.com/python/pythoncapi_compat

Drop support for alpha versions of Python 3.11 which don't have
PyFrame_GetLasti().

Replace MyFrame_lasti() with PyFrame_GetLasti(): Python 3.11.0b1 adds
PyFrame_GetLasti().

Add pythoncapi_compat.h header file to get PyFrame_GetLasti() on
Python 3.10 and older. File copied from:
https://github.com/python/pythoncapi_compat

Drop support for alpha versions of Python 3.11 which don't have
PyFrame_GetLasti().
@vstinner
Copy link
Author

vstinner commented Apr 8, 2022

#1353 is an attempt to keep support for Python 3.11 alpha versions.

@vstinner
Copy link
Author

vstinner commented Apr 8, 2022

Since #1353 tests pass on Python 3.11a5, I close this PR.

@vstinner vstinner closed this Apr 8, 2022
@vstinner vstinner deleted the frame_getlasti branch April 8, 2022 15:55
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.

1 participant