Hi, I didn't manage to find the 'create ticket' page for pylint, so here it goes.
$ cat a.py # pylint: disable-msg=W0201,W0232 class A: pass $ cat b.py import a xa = a.A() xa.x = 1 $ pylint -i yes --enable-checker=classes b a $ Which is expected, the disable-msg=W0201 silenced the warning about «Attribute 'x' defined outside __init__» (and the other warning as well). Now we edit b.py to have a comment at the beginning: $ cat b.py # import a xa = a.A() xa.x = 1 $ pylint -i yes --enable-checker=classes b a ************* Module b W0201: 4: Attribute 'x' defined outside __init__ The addition of a simple comment in b.py has re-enabled the W0201 warning. Trying to re-enable it, e.g. via: xa.x = 1 # pylint: disable-msg=W0201 has no effect at all. Note that the other warning (W0232) is not re-enabled by the comment, just W0201. I'm not familiar with the internals of pylint, so looking at ClassChecker.leave_class (the only place where W0201 is enabled) doesn't help me. Maybe this is not about pylint but the logilab packages it depends on, which I have installed as follows: python-logilab-astng 0.19.3-1 python-logilab-common 0.45.2-1 regards, iustin _______________________________________________ Python-Projects mailing list Python-Projects@lists.logilab.org http://lists.logilab.org/mailman/listinfo/python-projects