News for hackers. Stuff that matters.
Re:Strict Python function parameters by wheelerof4te on Sunday January 23, 2022 @01:48PM (#30049046)
Pythonic way to solve this problem would be to make Bar() a component of another class.

Functions are not a good tool for storing stateful objects in Python. That's why classes exist.

There are no comments on this comment yet.