• baseless_discourse@mander.xyz
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    6 months ago

    Python is great for scripting, but the advantages of nu and powershell are the ease of interacting with system utilities and the availability of common commands like ls etc.

    of course, you can always do subprocess.run or os.listdir(), but that is not as simple as scripting in nu or powershell.

    • Lightfire228@pawb.social
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      6 months ago

      This is true

      Although, i find this isn’t as much an issue if you use python’s STL as much as you can

      Pathlib and shutil are really handy for file manips

      But, yea interfacing with external CLI utilities like git is a PITA


      Oh there’s also xonsh which is just a shell built put of python