4 ms·
The conclusion in the article that using a getter/setter would fix most of the issues seems much more straight forward. Maybe I don't write enough python, but I
by dexwiz 5y ago
The conclusion in the article that using a getter/setter would fix most of the issues seems much more straight forward. Maybe I don't write enough python, but I rarely think modifying properties on a library object is preferable over clearly named methods.
- alkonaut 5y agoHow the object is mutated isn't really relevant to the smell. It's that an object can be mutated while someone else has a reference to it (and that the API is designed that way),