HashLDash/Photon

IndexError when 'new' has no default arguments

Huyston opened this issue · 0 comments

class Test():
    float lol = []
    def new():
        .lol += 1
        print(.lol)

a = Test()

Fails, while this works:

class Test():
    float lol = []
    def new(a=1):
        .lol += 1
        print(.lol)

a = Test()