[Python-projects] A fix for Pylint #8776, inline message supression

2010-03-15 Thread Alex Margarit
Hi, I think I have a fix for Pylint ticket #8776, "Inline message suppression has no effect if placed within a function's arguments list.". The problem is that function arguments are part of the same logical code line as the function definition. However, messages get deleted after they register i

Re: [Python-projects] Proposed output improvements

2010-03-15 Thread Sylvain Thénault
On 15 mars 08:27, Colin Morris wrote: > Hi, > > > > Pylint has a lot of options to controlling the behaviour and output. > > > But it is my experience that there are so many that they are very > > > hard to find and use correctly. > > > > do you have some ideas about how to improve this? Do you se

Re: [Python-projects] Proposed output improvements

2010-03-15 Thread Colin Morris
Hi, > > Pylint has a lot of options to controlling the behaviour and output. > > But it is my experience that there are so many that they are very > > hard to find and use correctly. > > do you have some ideas about how to improve this? Do you see some > options which are in your opinion useless?

Re: [Python-projects] pylint #18860: warn on assert( a, b ?) patch

2010-03-15 Thread Colin Morris
If it were possible to check a little more carefully what's being asserted, then we could give a very specific message. As I understand it, we're warning against the case where someone is trying to assert some boolean expression along with a message to pass to the AssertionError's constructor ("ass

Re: [Python-projects] pylint #18860: warn on assert( a, b ?) patch

2010-03-15 Thread Sylvain Thénault
On 14 mars 14:36, Fletcher Johnson wrote: > Hello, Hi, > Here is a proposed fix for ticket #18860 sounds good to me. The only thing I'm not keen on is the message. Maybe people here have some suggestions to improve it? -- Sylvain Thénault LOGILAB, Paris (France)

Re: [Python-projects] Proposed output improvements

2010-03-15 Thread Sylvain Thénault
On 14 mars 00:40, Mads Kiilerich wrote: > Maarten ter Huurne wrote, On 03/13/2010 02:58 AM: > >On Friday 12 March 2010, Sarah Strong wrote: > >>Proposed output: > >> > >>* Module Kontroller > >>W: 9: Bad indentation. Found 2 spaces, expected 4 > >>W: 10: Bad indentation. Found 2 spaces

Re: [Python-projects] Proposed output improvements

2010-03-15 Thread Sylvain Thénault
On 12 mars 21:57, Colin Morris wrote: > I quite like these suggestions, especially number 1. A few notes: > > > Proposed output for messages: > > > +---++ > > -+ > > |message id |occurrences |reference    | > > +===++=+ > > +

Re: [Python-projects] Proposed output improvements

2010-03-15 Thread Jürgen Hermann
> Would this be for html output mode? I like the idea, but I > can't imagine someone wanting to transcribe the URLs into > their browser from the text output. A modern console like gnome-terminal gives you a context menu to directly open or paste links found in your console output. So it's actu

Re: [Python-projects] Proposed output improvements

2010-03-15 Thread Sylvain Thénault
On 12 mars 17:35, s...@pobox.com wrote: Hi Skip, > (No smiley here...) > > I would argue that the ratings be deleted altogether or at least turned off > by default (and require obscure keyboard gymnastics to reenable). On more > than one occasion I have encountered people who thought that since

Re: [Python-projects] Proposed output improvements

2010-03-15 Thread Sylvain Thénault
On 12 mars 16:47, Sarah Strong wrote: > Hey, all, Hi Sarah, > We were hoping to make a couple of modifications to pylint's output in order > to help with progress on the "Bad first impression" ticket > > *Possible output improvement #1:* > > Avoid repeated output of related errors in the same

[Python-projects] Pylint: Análisis estático del código en Python

2010-03-15 Thread Alexandre Fayolle
For our spanish-reading friends : a blog note about Pylint available at http://blog.milmazz.com.ve/archivos/2010/03/13/pylint-analisis-estatico-del- codigo-en-python -- Alexandre Fayolle LOGILAB, Paris (France) Formations Python, CubicWeb, Debian : http://www.logila