On 26 avril 14:39, Kostyrka (External user) Andreas wrote: > Hi! Hi, > Wondered if there are any tutorials or hints how to go at extending pylint's > knowledge about classes/attributes. > > (2 cases here, generic improvements, e.g. collections.namedtuple comes to > mind, and project specific, e.g. type information about classes provided in > compiled pyd/so modules.)
You should take a look at the pylint-brain project: https://bitbucket.org/sthenault/pylint-brain You'll find in the project's README a link to a blog I wrote explaining the idea and base API. You should also take a look at the code which is easy to read and contains real life example. I'm afraid handling namedtuple is a bit trickier and may not be achieved using this api. This is probably a topic that'll be discussed during the next sprint (June 17-19). Hope that helps, -- Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42) 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 Python-Projects@lists.logilab.org http://lists.logilab.org/mailman/listinfo/python-projects