Message390512
AFAICS, this is fixed by the attached one-liner, based on Serhiy's suggestion (based on Raymond's suggestion).
$ python3.10 test.py
<sqlite3.Row object at 0x102b91330>
$ ./python.exe test.py # patch applied
<sqlite3.Row object at 0x10c06b600 {'number': 1, 'string': 'two', 'blob': b'\x1f'}>
$ cat test.py
import sqlite3
cx = sqlite3.connect(":memory:")
cx.row_factory = sqlite3.Row
query = """
select
1 as number,
'two' as string,
x'1f' as blob
"""
for row in cx.execute(query):
print(repr(row))
If Berker & Serhiy approves, I'll create a PR for it. |
|
Date |
User |
Action |
Args |
2021-04-08 08:55:02 | erlendaasland | set | recipients:
+ erlendaasland, rhettinger, terry.reedy, ghaering, berker.peksag, serhiy.storchaka, vlad |
2021-04-08 08:55:02 | erlendaasland | set | messageid: <1617872102.32.0.86107782914.issue35889@roundup.psfhosted.org> |
2021-04-08 08:55:02 | erlendaasland | link | issue35889 messages |
2021-04-08 08:55:01 | erlendaasland | create | |
|