Vladimir

38%
Flag icon
An object should be as simple as the requirements dictate—and not a parade of language features. If the code is for an application, then it should focus on what is needed to support the end users, not more. If the code is for a library for other programmers to use, then it’s reasonable to implement special methods supporting behaviors that Pythonistas expect. For example, __eq__ may not be necessary to support a business requirement, but it makes the class easier to test.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview