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 (__init__) original line (5)
>

Out of curiosity, why are you defining two classes inside a function?

-Xav
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to