No duplicate variable

King animator333 at
Fri Nov 20 17:38:54 CET 2009

class A(object):
    def __init__(self, value=0.):
        self.value = value

class B(A):
    def __init__(self, value=None):
        self.value = value

obj = B()

When "B" initializes, it overwrite "value" variable of "A". How do I
make sure that no variable should not be defined with names of "A" in


More information about the Python-list mailing list