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

Python

6375 readers
50 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
[–] eager_eagle@lemmy.world 1 points 5 hours ago (1 children)

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

[–] joyjoy@lemm.ee 1 points 5 hours ago (1 children)

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

[–] eager_eagle@lemmy.world 1 points 5 hours ago

that's already in the cheatsheet