[issue35889] sqlite3.Row doesn't have useful repr
Berker Peksag
report at bugs.python.org
Thu Feb 14 11:33:48 EST 2019
Berker Peksag <berker.peksag at gmail.com> added the comment:
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.
----------
nosy: +berker.peksag
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35889>
_______________________________________
More information about the Python-bugs-list
mailing list