Series
Python Patterns
CodeSnippets
1 item
Python Context Managers: Writing Clean Resource Handling with `with` Statements
Everyone learns with open(...) and stops. That is a shame, because the protocol behind it is two methods and it solves a whole category of bug: cleanup that does not happen on the paths you forgot a
Flashcards
1 item
Python Beginner Flashcards
- Python
- 40 Cards
- ~17 min
- 30 Oct 2026
The fastest way to stop writing confusing Python is to internalise one sentence: assignment binds a name to an object, and it never copies. Nearly every early bug that feels like the language misbehav