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

[#2122] Handover a number of Lists to Tuples #2123

Merged

Conversation

Rixxan
Copy link
Contributor

@Rixxan Rixxan commented Dec 28, 2023

Description

Tuples are (slightly) more efficient for comparing if x in y. While this resource savings is not particularly notable at our scale, it is still a good Pythonic standard to implement here. This PR attempts to implement the change in all core files except theme.py.

Type of change

  • Minor Edits

Closes #2122

Tuples are (slightly) more efficient for comparing if x in y. Not that it'll really matter at this scale, but it's technically better and simple to implement.

Applying to all files except theme.py, because theme.py is scary.
@Rixxan Rixxan added code cleanup Cleaning up code python Pull requests that update Python code labels Dec 28, 2023
@Rixxan Rixxan added this to the 5.10.1 milestone Dec 28, 2023
@Rixxan Rixxan requested a review from C1701D December 28, 2023 18:39
@Rixxan Rixxan self-assigned this Dec 28, 2023
@Rixxan Rixxan linked an issue Dec 28, 2023 that may be closed by this pull request
@Rixxan Rixxan added the Ready for Review PRs ready for review and merge label Dec 30, 2023
Copy link
Member

@C1701D C1701D left a comment

Choose a reason for hiding this comment

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

LGTM

@C1701D C1701D merged commit e3f3c80 into EDCD:develop Jan 3, 2024
1 check passed
@C1701D C1701D deleted the enhancement/2122/list-to-tuple-comparitors branch January 3, 2024 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code cleanup Cleaning up code python Pull requests that update Python code Ready for Review PRs ready for review and merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Project] List comparison to Tuple Comparison
2 participants