• Eager Eagle
    link
    English
    13 months ago

    Nice, mypath.open() is a more semantic alternative to open(my path)

    • unalivejoy
      link
      fedilink
      English
      13 months ago

      Don’t forget about the helper functions mypath.read_text() and mypath.write_text(content)

      • Eager Eagle
        link
        English
        13 months ago

        that’s already in the cheatsheet

    • @[email protected]
      link
      fedilink
      English
      -13 months ago

      Today I realised, we all prefer semantics matching oriental language semantics.
      English: Open my path.
      Same sentence in Hindi semantics would be: My path open.