Hi,
I'm trying working in Ren'Py and I found something very weird. In very early stage I defined the class:
but later I realized, I don't need a name argument in that class, because I provide it in character argument, so I delete it and now the class looks like this:
But now, and this is the weird part, when I instantiate the class:
It keeps throwing me an error:
And from my understanding, it wants 'name' argument, but I already delete it from the class, so I don't understand how it can still want it. When I try something like this:
It works just fine and it doesn't make any sense to me and I'm really confused by this. Is there some way to reset the class or something ?
I'm trying working in Ren'Py and I found something very weird. In very early stage I defined the class:
Code:
init python:
class Person:
def __init__(self, character, name):
self.ch = character
self.name = name
Code:
init python:
class Person:
def __init__(self, character):
self.ch = character
Code:
default test = Person(Character("Test"))
Code:
TypeError: __init__() missing 1 required positional argument: 'name'
Code:
default test = Person(Character("Test"), "test")