Re: Pylint Argument number differs from overridden method

2010-03-04 Thread Wanderer
On Mar 4, 5:45 am, Jean-Michel Pichavant wrote: > Wanderer wrote: > > On Mar 3, 2:33 pm, Robert Kern wrote: > > >> On 2010-03-03 11:39 AM, Wanderer wrote: > > >>> Pylint W0221 gives the warning > >>> Argument number differs from overridden method. > > >>> Why is this a problem? I'm overriding the

Re: Pylint Argument number differs from overridden method

2010-03-04 Thread Jean-Michel Pichavant
Wanderer wrote: On Mar 3, 2:33 pm, Robert Kern wrote: On 2010-03-03 11:39 AM, Wanderer wrote: Pylint W0221 gives the warning Argument number differs from overridden method. Why is this a problem? I'm overriding the method to add additional functionality. There are exce

Re: Pylint Argument number differs from overridden method

2010-03-03 Thread Wanderer
On Mar 3, 2:33 pm, Robert Kern wrote: > On 2010-03-03 11:39 AM, Wanderer wrote: > > > Pylint W0221 gives the warning > > Argument number differs from overridden method. > > > Why is this a problem? I'm overriding the method to add additional > > functionality. > > There are exceptions to every gui

Re: Pylint Argument number differs from overridden method

2010-03-03 Thread Terry Reedy
On 3/3/2010 12:39 PM, Wanderer wrote: Pylint W0221 gives the warning Argument number differs from overridden method. Why is this a problem? It *could* indicate a mistake. Lint programs, by definition, are nitpicky, and flag things that are possible problems even though syntactically correct.

Re: Pylint Argument number differs from overridden method

2010-03-03 Thread Robert Kern
On 2010-03-03 11:39 AM, Wanderer wrote: Pylint W0221 gives the warning Argument number differs from overridden method. Why is this a problem? I'm overriding the method to add additional functionality. There are exceptions to every guideline. Doing this could easily be a mistake, so it's one o

Pylint Argument number differs from overridden method

2010-03-03 Thread Wanderer
Pylint W0221 gives the warning Argument number differs from overridden method. Why is this a problem? I'm overriding the method to add additional functionality. This def GetRays(self, angle, pt, lmbda = 0.6): """ """ angle, x, y, Rays, Power = self.ARefract(angle, pt[