this post was submitted on 28 Apr 2026
81 points (100.0% liked)

technology

24348 readers
140 users here now

On the road to fully automated luxury gay space communism.

Spreading Linux propaganda since 2020

Rules:

founded 5 years ago
MODERATORS
 

Do they honestly expect me to believe that there wasn't a more appropriate way to abbreviate "cumulative maximum" than cummax? Imagine the headaches the inventor of the world's first Python powered sexbot will suffer when they realise that the method name cummin has already been taken.

you are viewing a single comment's thread
view the rest of the comments
[–] invalidusernamelol@hexbear.net 3 points 4 days ago* (last edited 4 days ago) (1 children)

I regret to inform you that pandas is based on R and R had the names first

Technically (according to the docs) it was originally proposed in 1988

[–] Umechan@hexbear.net 3 points 4 days ago (1 children)

They're still responsible for adopting the functions without renaming them.

[–] invalidusernamelol@hexbear.net 2 points 4 days ago* (last edited 4 days ago)

You never rename a function, no matter how bad it is lol. There's been a multi-year fight on the Python Forums about re.match being confusing since it anchors the expression to the start of the string while some other languages use match to search the whole string.

I propose that they deprecate cumsum and instead provide an alternative spelling sumcum since that will group it with the other sum functions in the language server autocomplete options