Pylint false positives

Marko Rauhamaa marko at pacujo.net
Sat Aug 18 19:03:23 EDT 2018


Chris Angelico <rosuav at gmail.com>:

> *headscratch*
>
> So this is okay:
>
> def f():
>     for i in range(5):
>         def g(): ...
>
> But this isn't:
>
> class C:
>     for i in range(5):
>         def m(self): ...
>
> I've missed something here.

No, you got it right.


Marko



More information about the Python-list mailing list