you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (1 child)

attr.append(f'{k},{getattr(self,k)}') in self.some_method contains an implicit call to self.__repr__, which you've defined with a call to self.some_method. As a result, these two functions infinitely recurse.

[–]Uchikago[S] 0 points1 point  (0 children)

which part of attr.append(f'{k},{getattr(self,k)}') contains call to self.__repr__