Skip to content

bpo-43950: make BinOp specializations more reliable #27126

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

Merged
merged 1 commit into from
Jul 15, 2021

Conversation

isidentical
Copy link
Member

@isidentical isidentical commented Jul 13, 2021

Ensure that we are parsing the correct segment ([right->end, left->start)) for BinOps.

https://bugs.python.org/issue43950

self.assertEqual(specialization_line.lstrip(), expected_specialization)

def test_specialization_variations(self):
self.assertSpecialized(lambda: 1/0, "~^~")
Copy link
Member

Choose a reason for hiding this comment

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

Would you mind lining up the carets with the code just so these tests are easier to read.

Copy link
Member

Choose a reason for hiding this comment

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

I have pushed to your fork the fix

@pablogsal pablogsal force-pushed the bpo-43950-proper-specialization branch from 442a9e0 to 85eabf2 Compare July 15, 2021 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants