Skip to content

Reduce usages of empty split() on literal strings#2438

Open
Avasam wants to merge 9 commits intomhammond:mainfrom
Avasam:reduce-empty-split
Open

Reduce usages of empty split() on literal strings#2438
Avasam wants to merge 9 commits intomhammond:mainfrom
Avasam:reduce-empty-split

Conversation

@Avasam
Copy link
Collaborator

@Avasam Avasam commented Dec 14, 2024

Reduces useless overhead of calling split , which also affects formatting consistency and readability.
I also used the immutable tuple where appropriate.

@mhammond
Copy link
Owner

I kinda like them - it's a feature imo - especially in demos or scripts where performance doesn't matter at all.

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.

2 participants