This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vlad
Recipients vlad
Date 2019-02-02.13:02:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1549112536.04.0.744689521798.issue35889@roundup.psfhosted.org>
In-reply-to
Content
To reproduce, run the following program:

import sqlite3
conn = sqlite3.connect(':memory:')
conn.row_factory = sqlite3.Row
print(conn.execute("SELECT 'John' AS name, 42 AS salary").fetchone())

It prints '<sqlite3.Row object at 0xffffffffffffff>'.
It would be nice if it printed something like "sqlite3.Row(name='Smith', saraly=42)" instead.
It wouldn't satisfy the 'eval(repr(x)) == x' property, but it's still better than nothing.

If the maintainers agree this is useful, I'll implement.
History
Date User Action Args
2019-02-02 13:02:20vladsetrecipients: + vlad
2019-02-02 13:02:16vladsetmessageid: <1549112536.04.0.744689521798.issue35889@roundup.psfhosted.org>
2019-02-02 13:02:15vladlinkissue35889 messages
2019-02-02 13:02:15vladcreate