What does this PyChecker warning mean?
Xavier Ho
contact at xavierho.com
Tue Jun 1 07:53:13 EDT 2010
On 1 June 2010 21:48, Leo Breebaart <leo at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100601/952c18cd/attachment-0001.html>
More information about the Python-list
mailing list