this post was submitted on 19 Jun 2023
5 points (100.0% liked)

Python

6392 readers
25 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 year ago (1 children)

Objects are just the poor man's closures. I really hate it when libraries like urllib impose a multi-class object nesting paradigm when a simple multi argument function would be better in every way

[–] [email protected] 2 points 1 year ago

Yeah but sometimes you want something that has mutable state over time, and it’s easier to pack it into a self-contained thing.