• Diplomjodler@lemmy.world
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    1 month ago

    They could have chosen a better operator. But the functionality is fantastic. Makes working with paths so much easier. And you can even use slashes on windows paths.

    • leds@feddit.dk
      link
      fedilink
      arrow-up
      8
      ·
      1 month ago

      It makes the code so much more clean and readable since you’re dropping multiple levels of brackets , for example

      os.path.join( a, b, os.path.dirname(c))

      Becomes

      a / b / c.parent

      I really like it