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.

  • invalidusernamelol [he/him]@hexbear.net
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    1 month 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

    Of course this applies to the related functions maxcum, mincum, and prodcum