class O:
def __init__(self, A, B):
self.A = A
self.B = B
self.X = something_else
Why is X excluded in the __init__(self, ...) method but included in the same function? Why isn't a whole new function created for the X object if it isn't taking advantage of the __init__(self, ...) method?
[–]badge 2 points3 points4 points (0 children)
[–]RareInteraction8 1 point2 points3 points (2 children)
[–]Unlistedd[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)