What does this PyChecker warning mean?

2010-06-01 Thread Leo Breebaart
When fed the following code: def Foo(): class A(object): def __init__(self): pass class B(object): def __init__(self): pass PyChecker 0.8.18 warns: foo.py:9: Redefining attribute (__init__) original line (5) I do not understand what is

Re: What does this PyChecker warning mean?

2010-06-01 Thread Xavier Ho
On 1 June 2010 21:48, Leo Breebaart l...@lspace.org wrote: When fed the following code: def Foo(): class A(object): def __init__(self): pass class B(object): def __init__(self): pass PyChecker 0.8.18 warns: foo.py:9: Redefining attribute

Re: What does this PyChecker warning mean?

2010-06-01 Thread Peter Otten
Leo Breebaart wrote: When fed the following code: def Foo(): class A(object): def __init__(self): pass class B(object): def __init__(self): pass PyChecker 0.8.18 warns: foo.py:9: Redefining attribute (__init__) original

Re: What does this PyChecker warning mean?

2010-06-01 Thread Steven W. Orr
On 6/1/2010 7:53 AM, Xavier Ho wrote: On 1 June 2010 21:48, Leo Breebaart l...@lspace.org mailto:l...@lspace.org wrote: When fed the following code: def Foo(): class A(object): def __init__(self): pass class B(object): def

Re: What does this PyChecker warning mean?

2010-06-01 Thread Leo Breebaart
On 6/1/2010 7:53 AM, Xavier Ho wrote: Out of curiosity, why are you defining two classes inside a function? Not my code! Not my code! :-) This code was contributed by someone else, and I merely took my default action (in such cases) of running pyflakes, pychecker, and pylint on it before

Re: What does this PyChecker warning mean?

2010-06-01 Thread Terry Reedy
On 6/1/2010 8:23 AM, Peter Otten wrote: Leo Breebaart wrote: When fed the following code: def Foo(): class A(object): def __init__(self): pass class B(object): def __init__(self): pass PyChecker 0.8.18 warns: foo.py:9: Redefining

Re: What does this PyChecker warning mean?

2010-06-01 Thread MrJean1
Although PyChecker 0.8.18 is quite an improvement over previous releases, it does have quirks. The PyChecker postprocessor might be helpful, see http://code.activestate.com/recipes/546532/ /Jean On Jun 1, 4:48 am, Leo Breebaart l...@lspace.org wrote: When fed the following code:  def