Re: [Python-projects] [TIP] Teaching pylint about keyword placeholders in string formatting

2009-07-15 Thread Aurélien Campéas
On Wed, Jul 15, 2009 at 09:22:11AM -0500, s...@pobox.com wrote: > > Nicolas> Here is the ticket: > Nicolas> https://www.logilab.net/elo/ticket/9634 > > Is it possible to get read-only access to the tracker? It's prompting me > for a login which I don't have. > > Thx, that should be htt

Re: [Python-projects] [TIP] Teaching pylint about keyword placeholders in string formatting

2009-07-15 Thread skip
Nicolas> Here is the ticket: Nicolas> https://www.logilab.net/elo/ticket/9634 Is it possible to get read-only access to the tracker? It's prompting me for a login which I don't have. Thx, -- Skip Montanaro - s...@pobox.com - http://www.smontanaro.net/ when i wake up with a heart r

Re: [Python-projects] [TIP] Teaching pylint about keyword placeholders in string formatting

2009-07-15 Thread Nicolas Chauvat
On Wed, Jul 15, 2009 at 12:39:48PM +0200, Nicolas Chauvat wrote: > Here is the ticket: > https://www.logilab.net/elo/ticket/9634 Apologies: http://www.logilab.org/ticket/9634 -- Nicolas Chauvat logilab.fr - services en informatique scientifique et gestion de connaissances -- http://mail.pyth

Re: Teaching pylint about keyword placeholders in string formatting

2009-07-15 Thread Ben Finney
Nicolas Chauvat writes: > On Wed, Jul 15, 2009 at 08:08:13PM +1000, Ben Finney wrote: > > That is, pylint is not aware that the names used by accessing the values > > from the dictionary returned by ‘vars()’. > > ... > > You are not the only one: > http://lists.logilab.org/pipermail/python-proje

Re: [TIP] Teaching pylint about keyword placeholders in string formatting

2009-07-15 Thread Nicolas Chauvat
Hi, On Wed, Jul 15, 2009 at 08:08:13PM +1000, Ben Finney wrote: > def frobnicate(warble): > foo = complex_computation() > bar = long.access.path.leading.to.useful.value > baz = (lengthy + expression * with_several_parts) > spangulate("%(warble)s: %(foo)s%(bar)s

Teaching pylint about keyword placeholders in string formatting

2009-07-15 Thread Ben Finney
Howdy all, A common idiom I use is:: def frobnicate(warble): foo = complex_computation() bar = long.access.path.leading.to.useful.value baz = (lengthy + expression * with_several_parts) spangulate("%(warble)s: %(foo)s%(bar)s [%(baz)d]" % vars()) This allows th