thunkingdeep 2 days ago

Ah, you’re correct. My comment was mainly meant as a tongue in cheek remark to point out that this definition of tailcall is wholly separate from Python function objects and merely an implementation detail.

riffraff 2 days ago

the steering committee seems way less conservative than Guido, right?

Looking at python from the outside a lot of changes since GvR stepped down seem like stuff he'd not have been fond of.

  • kqr 2 days ago

    I think this is a change longer in the making than that. Back when I started working with Python in the mid--late 2000s, the Zen was holy and it seemed very unlikely to ever see multiple ways to do "one thing".

    The Python community has since matured and realised that what they previously thought of as "one thing" were actually multiple different things with small nuances and it makes sense to support several of them for different use cases.

    • guappa 2 days ago

      One way to do the things. That's why there's 5000 ways to install a module.

    • riffraff 2 days ago

      You may be right. I checked and found the introduction of the ternary expression, which I found to be wildly "unpythonic", was back in 2006. Time flies.

  • pansa2 2 days ago

    Any examples? The biggest change since Guido stepped down has been the addition of pattern matching, which he was strongly in favour of.

    Moreover, Guido is in favour of ongoing addition of major new features (like pattern matching), worrying that without them Python would become a “legacy language”:

    https://discuss.python.org/t/pep-8012-frequently-asked-quest...

    • riffraff 2 days ago

      I was thinking of the walrus operator, various f-string changes, relenting on the "GIL removal must not cost performance" stance (although"covered" by other improvements), things like that.

      I don't follow python closely so it may 100% be stuff that GvR endorsed too, or I'm mixing up the timelines. It just feels to me that python is changing much faster than it did in the 2.x days.

      • dragonwriter 2 days ago

        > python is changing much faster than it did in the 2.x days.

        I think part of the reason Guido stepped down was that the BDFL structure created too much load on him dealing with actual and potential change, so its unsurprising that the rate of change increased when the governance structure changed to one that managed change without imposing the same load on a particular individual.

      • kqr 2 days ago

        This may just be time passing faster now that you're older.

    • pinoy420 2 days ago

      Pattern matching seems like a cool feature that was added just because it was cool. I think the syntax is really odd too - apparently to “be pythonic”. I really see no use for it other than to “look smart”. The fact that case match (switch case is a much better description) is expanded to practically a huge if else is disturbing. Similarly the walrus operator. Other than an answer to “what is a new feature of python that you like” interview trivia question, really, who has actually used it?

      • dragonwriter 2 days ago

        I don't use pattern matching much, but I use walrus fairly regularly.

      • Qem 2 days ago

        > Similarly the walrus operator. Other than an answer to “what is a new feature of python that you like” interview trivia question, really, who has actually used it?

        At least in my case I use it all the time, to avoid duplicated operations inside comprehensions.