• Diplomjodler@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    9 hours 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
      link
      fedilink
      arrow-up
      3
      ·
      6 hours 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