Hi,
The new pylint and astng releases solved most of the remaining false positives
on our project. Thanks for the fixes!
One of the false positives that remains is the following one:
===
class SomeProperty(object):
def __get__(self, obj, objtype = None):
if obj is None:
return self
else:
return getattr(obj, 'thingy')
def __set__(self, obj, value):
raise AttributeError('attempt to set unmodifiable property')
def __delete__(self, obj):
raise AttributeError('attempt to remove unmodifiable property')
===
W0613: 12:SomeProperty.__delete__: Unused argument 'obj'
===
I wonder why __get__ and __set__ also have unused arguments and are not flagged
by W0613 but __delete__ is?
pylint 0.18.1,
astng 0.19.1, common 0.45.0
Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
Bye,
Maarten
The information contained in this message may be confidential and legally
protected under applicable law. The message is intended solely for the
addressee(s). If you are not the intended recipient, you are hereby notified
that any use, forwarding, dissemination, or reproduction of this message is
strictly prohibited and may be unlawful. If you are not the intended recipient,
please contact the sender by return e-mail and destroy all copies of the
original message.
_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects