SQL Code exceeds maximum recursion depth : I am new to python and I am doing testing.

when I run following code, error message "RecursionError: maximum recursion depth exceeded"



names = ['G','K']

class test(object):

    def __init__(self, names):
        self.players = []
        for name in names:
            player = test(name)
            self.players.append(player)
        print(self.players)

G = test(names)

can anyone tell me what went wrong and how to solve it?
Thank you very much!!!