[sugar] [PATCH] sugar pylint (vol2)

Simon Schampijer simon
Tue Apr 22 11:02:50 EDT 2008


Ok, Marco's workaround solved the gtk.gdk.window issue.

Martin Dengler wrote:
> 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
> 

This sounds good to me. I would vote for that solution. Thanks for 
sharing that thread!
    Simon



More information about the Sugar-devel mailing list