On 30 août 09:57, Dotan Barak wrote: > Hi. Hi, > I'm sing the latest pylint (0.18.1), and for the following code: > <--start--> > def func1(): > func1.cntr = 0 > > def internal_func(): > print "%d" % func1.cntr > > func1.cntr += 1 > internal_func() > > > func1() > <--end-->
yup, pylint (astng actually) doesn't understand function's attribute yet, there is already a ticket for this pb in the tracker. -- Sylvain Thénault LOGILAB, Paris (France) Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations Développement logiciel sur mesure: http://www.logilab.fr/services CubicWeb, the semantic web framework: http://www.cubicweb.org _______________________________________________ Python-Projects mailing list [email protected] http://lists.logilab.org/mailman/listinfo/python-projects
