• FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    17
    arrow-down
    1
    ·
    4 days ago

    Wow, they (apparently) finally made the REPL not suck! I always thought it was weird how shit it was given that it’s one of the big reasons Python has become as popular as it is.

    Maybe in another 20 years they can make the package tooling not suck too.

    • sugar_in_your_tea@sh.itjust.works
      link
      fedilink
      arrow-up
      10
      arrow-down
      1
      ·
      3 days ago

      poetry has made the package tooling generally not suck for me, and uv seems to be getting better. Just a few more PEPs to go until uv does what I want. Here’s hoping.

        • sugar_in_your_tea@sh.itjust.works
          link
          fedilink
          arrow-up
          4
          arrow-down
          1
          ·
          2 days ago

          uv is basically a super fast Python tool, written in Rust. Looks promising, but it seems to be missing some features I really like from Poetry, but I’m keeping my eye on it.

      • FizzyOrange@programming.dev
        link
        fedilink
        arrow-up
        3
        ·
        3 days ago

        Yeah it’s definitely a vast improvement on previous attempts (Poetry et al).

        I dunno if it can be called solved until it’s officially sanctioned and installed by default though, and I don’t see that happening for a very long time.

          • FizzyOrange@programming.dev
            link
            fedilink
            arrow-up
            3
            ·
            2 days ago

            It actually works. I tried poetry once and it failed to resolve some simple dependency specification.

            Ok you can say it was a fluke bug but it didn’t inspire confidence.

            uv is also freakishly fast. My venv setup times went from 57 seconds to 7 seconds. I seriously doubt Poetry can do that because it’s written in Python.

          • Buttons@programming.dev
            link
            fedilink
            English
            arrow-up
            2
            ·
            2 days ago

            I abandoned poetry after it was unable to install a specific version of pytorch I was using.

            In pip I would do something like pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118, but IIRC poetry didn’t support the --index-url option.

    • solrize@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      3 days ago

      The Python REPL was always sort of minimal when used from the command line, but is quite usable in an Emacs window. IDLE is also useful some of the time. I never felt the need for anything like Eclipse because of it.

    • brettvitaz@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 days ago

      Maybe because people who needed it knew there were better ways to do it, like ipython and Jupyter. I’ve never heard of anyone gushing about the stock REPL.