The __str__, __repr__ and __format__ methods on foreign raise a RecursionError for recursive array-like objects. The implementation is here and it does not check for recursive structures like in the implementation of __repr__ on the native python list.
The
__str__
,__repr__
and__format__
methods onforeign
raise aRecursionError
for recursive array-like objects. The implementation is here and it does not check for recursive structures like in the implementation of__repr__
on the native pythonlist
.