[Python-projects] Pylint bug or feature?

Maarten ter Huurne maarten.ter.huurne at philips.com
Mon Aug 20 17:56:26 CEST 2007


> In pylint 0.13.1, pylniting the following code results in an "E1010:
> Raising a new style class"
>
> class C(object):
>
>     class E(Exception):
>         pass
>
>     @staticmethod
>     def test():
>         raise C.E() # This line generates the pylint error
>
>
> I haven't tested this on the latest version of pylint, because it's
> difficult to do so in my workplace, however, the code does run on
> Python 2.4.0.

I have just tested it with pylint 0.13.2 and astng 0.17.1. It seems the
message was reclassified as "W1010" (so warning instead of error), but it
is still present.

Bye,
            Maarten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.logilab.org/pipermail/python-projects/attachments/20070820/d1762666/attachment.htm 


More information about the Python-Projects mailing list