Closed mfalesni closed 6 years ago
btw, we following pep8, so long names are not good
self.parent
is not always set by the default implementation. We follow PEP8 as well, but this was the best we could come up with :)
@mfalesni why not set self.parent
then? Similar to your proposal:
if not hasattr(self, 'parent'):
setattr(self, 'parent', None)
Actually, we should not need it since you assume the prerequisite always defines some view. So this PR is purely for the name, therefore can be probably closed.
As per irc discussion
self.parent
sounds better, but if we need to have thattry...except
block - let's keep it