[sugar] [PATCH] sugar pylint (vol2)

Martin Dengler martin at martindengler.com
Tue Apr 22 09:24:47 EDT 2008


On Tue, Apr 22, 2008 at 02:20:12PM +0100, Martin Dengler wrote:
> On Tue, Apr 22, 2008 at 02:47:38PM +0200, Simon Schampijer wrote:
> > Another issue I have quite often is the one of unused variables due 
> > to returned tuples and lists where not all the variables are used in 
> > the code.
> > What about doing here, or any other options?
> 
> IMHO, pylint shouldn't warn about these situations.  The code it's
> complaining about is a lot nicer than the "pylint approved"
> alternative you mention.

Evidently one other solution is to adopt a naming convention for the
unused variables in a tuple-unpacking LHS and add that as a pylint
rule:

http://lists.logilab.org/pipermail/python-projects/2006-November/001059.html

> > Best,
> >    Simon
> 
> Martin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.laptop.org/pipermail/sugar/attachments/20080422/60bc5599/attachment.pgp 


More information about the Sugar mailing list