[sugar] [PATCH] sugar pylint (vol2)
Tomeu Vizoso
tomeu at tomeuvizoso.net
Wed Apr 23 10:51:33 EDT 2008
On Tue, Apr 22, 2008 at 5:02 PM, Simon Schampijer <simon at schampijer.de> wrote:
> 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!
The patches look good to me.
Thanks,
Tomeu
More information about the Sugar
mailing list