this post was submitted on 18 Nov 2024
18 points (100.0% liked)

Python

6381 readers
49 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

πŸ“… Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
πŸ’“ Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 day ago (2 children)

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

[–] [email protected] -1 points 1 day 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.

[–] [email protected] 1 points 1 day ago (1 children)

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

[–] [email protected] 1 points 1 day ago

that's already in the cheatsheet