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

Python

6153 readers
10 users here now

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

📅 Events

October 2023

November 2023

PastJuly 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS
top 2 comments
sorted by: hot top controversial new old
[–] [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.