Re:Python built-ins worth learning
by pfranz on Wednesday May 22, 2019 @01:45PM
(#19983551)
That is one way of writing programs. Python is very OO friendly. If any of the main features of OO make your code more maintainable; inheritance, polymorphism, encapsulation, overloading, then use those. Passing around a dict is an object, but it's often nice to keep methods for interacting with that object along with the data (for reasons mentioned above).
[ Parent
| on HN ]
There are no comments on this comment yet.