oracle / graalpython

A Python 3 implementation built on GraalVM
Other
1.17k stars 101 forks source link

String representation of recursive arrays leads to `RecursionError` #402

Closed mrigankpawagi closed 2 weeks ago

mrigankpawagi commented 4 weeks ago

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.