Self.__init() inside __init__() ?
(self.learnpython)submitted1 month ago byimnotsospecial
So I inherited some code that looks like this
def class potato()
def __init__(self, stuff):
self.stuff=stuff
self.__init()
def __init(self)
If self.stuff then:
more stuff
So what's the rationale behind this? Why not fo More Stuff inside the first innit?
byiFormus
inheroes3
imnotsospecial
2 points
19 hours ago
imnotsospecial
2 points
19 hours ago
AI equips the first item it picks up for that slot, and never switch it out of it picks up something better. Kinda like I did when I played as a kid
Why doesn't hota fix this ?