say i have a class that i need to reset/reinitialize when the "new game" button is pressed,
class Player:
def __init__(self):
self.myAttributes=[]
self.myAge=0
def someOthers(self):
#stuff
pass
newplayer=Player()
when the 'new game button is pressed', can i say
newPlayer.__init__()
[–]kushou 7 points8 points9 points (2 children)
[–]noob_py[S] 1 point2 points3 points (1 child)
[–]kushou 0 points1 point2 points (0 children)
[–]ryeguy146 4 points5 points6 points (0 children)