Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[mypyc] Fix comparison of tuples with different lengths#19372

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
JukkaL merged 2 commits intopython:masterfromp-sawicki:p-sawicki/tuple-comparison
Jul 4, 2025

Conversation

@p-sawicki
Copy link
Collaborator

When comparing tuples, their lengths are now compared and their contents are only compared if their lengths are equal. Otherwise, when they have different lengths, the comparison always evaluates toFalse.

@brianschubert
Copy link
Collaborator

Good find! I can confirm that this is a bug;(1,) == (1, 2) is True and(1, 2) == (1,) crashes on master.

@brianschubertbrianschubert added the topic-mypycmypyc bugs labelJul 3, 2025
Copy link
Collaborator

@JukkaLJukkaL left a comment

Choose a reason for hiding this comment

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

Thanks, looks good!

@JukkaLJukkaL merged commit1a99ce2 intopython:masterJul 4, 2025
13 checks passed
@p-sawickip-sawicki deleted the p-sawicki/tuple-comparison branchJuly 4, 2025 10:54
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@JukkaLJukkaLJukkaL approved these changes

+1 more reviewer

@sterliakovsterliakovsterliakov left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

topic-mypycmypyc bugs

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@p-sawicki@brianschubert@JukkaL@sterliakov

[8]ページ先頭

©2009-2025 Movatter.jp