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

Python

6468 readers
16 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 2 years ago
MODERATORS
top 2 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 2 years 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 2 years 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.