osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pylint false positives


Marko Rauhamaa wrote:
> At least some of the methods of inner classes are closures (or there
> would be no point to an inner class).

In Python there is no such thing as an "inner class" in the Java
sense. You can nest class statements, but that just gives you
a class that happens to be an attribute of another class.
Nothing in the nested class has any special access to anything
in the containing class.

-- 
Greg