• Diplomjodler@lemmy.world
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    5 days 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
      6
      ·
      5 days 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