[code-quality] Two attribute usage checkers I'd like to see
Martin Pool
mbp at google.com
Fri Jun 7 01:35:25 CEST 2013
On 7 June 2013 09:32, Skip Montanaro <skip at pobox.com> wrote:
>
> Correct, but I would just like to be alerted that perhaps I should
> consider narrowing my API. Some of the code base I work on was around
> before Python 2.2 was available. Over time, people have started to
> add property-based setters and getters. In many circumstances, we
> should probably pick one way to do it, in this case self.foo vs
> self.get_foo(). I'm just looking for the message to remind me to
> consider the API duplication. I'm not suggesting pylint or other
> tools should recommend one or the other.
That makes sense. You could do something similar when people are migrating
methods but the old one's hanging around.
--
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/code-quality/attachments/20130607/54b024ca/attachment-0001.html>
More information about the code-quality
mailing list