Property Abuse

Felipe O pip.261 at gmail.com
Wed Dec 14 03:28:45 EST 2011


Hi All,
I was wondering what everyone's thought process was regarding properties.
Lately I find I've been binging on them and have classes with > 10
properties. While pylint doesn't complain (yet), it tends to be picky about
keeping instance attribute counts low, so I figure there's something
against that. How do you guys decide between using properties versus getter
methods, or how do you refactor them if neither?
Cheers!
-Felipe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20111214/8ddd1d66/attachment-0001.html>


More information about the Python-list mailing list