[Python-projects] pylint doesn't detect missing number of parameters in class

Sylvain Thénault sylvain.thenault at logilab.fr
Wed Mar 11 16:50:49 CET 2009


Le Wednesday 11 March 2009 16:46:38 Dotan Barak, vous avez écrit :
> On Wed, Mar 11, 2009 at 5:40 PM, Sylvain Thénault
>
> <sylvain.thenault at logilab.fr> wrote:
> > Le Wednesday 11 March 2009 16:33:19 Dotan Barak, vous avez écrit :
> >> I noticed that the following error cannot be detected too
> >> (i don't know if this is related):
> >>
> >> print "hello %s world"
> >
> > it's neither related nor an error...
>
> Sorry for asking: but why do you think that this is not an error?

no problem

> for example:
>
> In the following example, this may produce an error:
>
> src_file = "a.txt"
> tgt_file = "b.txt"
>
> os.system("cp %s %s" % src_file)

this is an error. Your first example wasn't (try it in python), it simply 
print the string with the %s inside.
-- 
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