[Python-projects] pylint: Problem with message suppression inside argument list
Huurne, Maarten ter
maarten.ter.huurne at philips.com
Thu Mar 26 19:37:38 CET 2009
Hi,
In the following program, the message suppression has no effect:
===
def f(
k,
# pylint: disable-msg=W0102
d = {}
):
return d.get(k)
===
W0102: 1:f: Dangerous default value {} as argument
However, if the "disable-msg" comment is moved to the start of the argument list or to the end of it, it does take effect. But if it is put on the same line as "d = {}", it has no effect.
This is a regression in pylint 0.18.0 / astng 0.19.0 compared to pylint 0.16.0 / astng 0.17.4.
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.logilab.org/pipermail/python-projects/attachments/20090326/fc14b8e0/attachment.htm>
More information about the Python-Projects
mailing list