Message336291
There is no need to add explicit knowledge of reprlib to the Row object or vice versa.
Those who use reprlib to limit output size will have no problem. Reprlib already truncates arbitrary reprs at the string level: https://github.com/python/cpython/blob/22bfe637ca7728e9f74d4dc8bb7a15ee2a913815/Lib/reprlib.py#L144
Those who use builtin repr() have to be prepared for the possibility of unbounded repr anyway, because all collection-like objects in Python have unbounded __repr__.
It would be annoying if some collection-like objects decided to be clever and omit parts of their regular __repr__ because they feel it's too much for the user to handle. |
|
Date |
User |
Action |
Args |
2019-02-22 10:21:37 | vlad | set | recipients:
+ vlad, rhettinger, terry.reedy, ghaering, berker.peksag |
2019-02-22 10:21:37 | vlad | set | messageid: <1550830897.09.0.724788003928.issue35889@roundup.psfhosted.org> |
2019-02-22 10:21:37 | vlad | link | issue35889 messages |
2019-02-22 10:21:36 | vlad | create | |
|