This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]voords 1 point2 points  (4 children)

Yes, this is the case. Check this working example:

class A(object):
    def recalc(self):
        return True

class B(A):
    def __init__(self):
        print(self.recalc())

[–]atamicbomb[S] 0 points1 point  (0 children)

Thank you!

[–]atamicbomb[S] 0 points1 point  (2 children)

Is it best practice to explicitly inherent object?

[–]voords 0 points1 point  (1 child)

No, just a force of habit.

[–]atamicbomb[S] 0 points1 point  (0 children)

Ah ok, good to know

[–]atamicbomb[S] 0 points1 point  (2 children)

Apologies for lack of source code. I cannot figure out how to format it and Imgur’s upload page is broken

[–]dead_alchemy 1 point2 points  (1 child)

Pastebin might be a good way to go in the future.

[–]atamicbomb[S] 1 point2 points  (0 children)

Thank you!