Message335540
While the proposed formats look nice for artificial inputs, the Row object can have more than two fields and the value of a field can be much longer than that. So, in practice the new repr can make the situation worse than the current repr.
I think wrapping the output of row.keys() (https://docs.python.org/3/library/sqlite3.html#sqlite3.Row.keys) with something like reprlib.recursive_repr() would work better for Row objects with several fields. |
|
Date |
User |
Action |
Args |
2019-02-14 16:33:48 | berker.peksag | set | recipients:
+ berker.peksag, rhettinger, terry.reedy, ghaering, vlad |
2019-02-14 16:33:48 | berker.peksag | set | messageid: <1550162028.64.0.243922317801.issue35889@roundup.psfhosted.org> |
2019-02-14 16:33:48 | berker.peksag | link | issue35889 messages |
2019-02-14 16:33:48 | berker.peksag | create | |
|