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

Fix potential error in rewrite fast locals on 3.12 for #548 #550

Merged
merged 2 commits into from Apr 24, 2024

Conversation

frmdstryr
Copy link
Contributor

Adds a few isinstance checks needed in rewrite_fast_locals on python 3.12. Fixes #548

@frmdstryr frmdstryr changed the title Fix rewrite fast locals on 3.12 for #548 Fix potential error in rewrite fast locals on 3.12 for #548 Apr 15, 2024
Copy link

codecov bot commented Apr 15, 2024

Codecov Report

Merging #550 (0b34df4) into main (bf0ea6f) will increase coverage by 0.00%.
Report is 1 commits behind head on main.
The diff coverage is 100.00%.

❗ Current head 0b34df4 differs from pull request most recent head 0e980a9. Consider uploading reports for the commit 0e980a9 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #550   +/-   ##
=======================================
  Coverage   70.74%   70.75%           
=======================================
  Files         287      287           
  Lines       25634    25638    +4     
  Branches     4676     4678    +2     
=======================================
+ Hits        18135    18139    +4     
  Misses       6386     6386           
  Partials     1113     1113           

@MatthieuDartiailh
Copy link
Member

Thanks for the PR. I will try to look into the bytecode causing the error before merging to understand why 3.12 uses a try/begin here.

@MatthieuDartiailh
Copy link
Member

Thanks for the fix. Would you be so kind as to add an entry in the changelog ?

@MatthieuDartiailh MatthieuDartiailh merged commit ca6cf4a into nucleic:main Apr 24, 2024
1 of 2 checks passed
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.

TryBegin object has no attribute name with python 3.12 in rewrite_to_fast_locals
2 participants