• Ordoviz@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    6 days ago

    Finally a fast and elegant way to flatten lists using PEP 798: [*x for x in L]

    • logging_strict@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      6 days ago

      Luckily people smarter than us realized code checking for versions couldn’t distinguish from 3.14 and 3.14blahblahblah

      That idea sucks please forget you ever supported it and i’ll do the same. The point is now mote anyway.

        • logging_strict@programming.dev
          link
          fedilink
          arrow-up
          0
          ·
          6 days ago

          no. No it wouldn’t. It would break 99.9999% of python interpreter version checks cuz we are all following the exact same patterns.

          … the next day you’d be here saying that was a really bad idea.

          Luckily people smarter than us already decided that was not worth pursuing. And we are better off for those folks with foresight instead of 100% clarity in hindsight.