Inheritance Confusion

Andrew Dalke dalke at acm.org
Wed May 2 19:28:26 EDT 2001


Andy Todd wrote:
>My following script doesn't do what *I* expect it to, [...]
>
>class A:
>    def __init__(self):
>        self.x = "blah blah"
>
>class B(A):
>    def _init__(self):
        ^^^ This should be __init__

Does any know if any the Python linting tools check for suspect
names like this?

                    Andrew
                    dalke at acm.org






More information about the Python-list mailing list