Hello,

pylint is reporting the following warning:

test_pylint_redefine.py:6: [W0621, Abc.__init__] Redefining name
'param' from outer scope (line 9)

for the attached python code

#######################
class Abc(object):

    def __init__(self, param):
        pass

param = None
#######################

Is there really redefining happening here or is this a pylint oversight ?

-- 
Vincent Legoll
"Test code to show pylint redefine"

class Abc(object):
    "Test class"

    def __init__(self, param):
        pass

param = None

_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to