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

Aurélien Campéas aurelien.campeas at logilab.fr
Wed Mar 11 16:52:57 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?

>>> print 'hello %s'
hello %s

is clearly not an error

> 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 depends on the type of src_file
knowing this in advance is, in general, an unsolvable problem (in Python)

>
>
>
> Thanks
> Dotan
>
> > --
> > 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
>
> _______________________________________________
> Python-Projects mailing list
> Python-Projects at lists.logilab.org
> http://lists.logilab.org/mailman/listinfo/python-projects




More information about the Python-Projects mailing list