[Python-projects] checker idea for pylint found on c.l.py

Sylvain Thénault sylvain.thenault at logilab.fr
Sat May 6 23:54:52 CEST 2006


On Thursday 27 April à 22:08, Alexandre Fayolle wrote:
> Hi,
>
> Edward Elliot, in a message on c.l.py about private variables and their
> enforcement in python wrote the following:
> 
> > If you're worried about enforcing restrictions in your code base, get
> > a lint checker to flag any expression of the form name._foo where name
> > isn't 'self'.  Yes you can still access _foo other ways, but you'll
> > never get perfect enforcement anyway.  Maybe the extra step will make
> > you think twice, if that's what you want (and it seems to be).
> 
> Is it something pylint does currently? If not, is it something that we
> would like to see? 

yep, I like this idea. I've even implemented it during my latest trip,
so it's now in the svn (formerly cvs, and public hg soon :/)

-- 
Sylvain Thénault                               LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian:  http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
Python et calcul scientifique:           http://www.logilab.fr/science



More information about the Python-Projects mailing list