[issue43396] Non-existent method sqlite3.Connection.fetchone() used in docs

Tore Anderson report at bugs.python.org
Thu Mar 4 09:18:56 EST 2021


Tore Anderson <tore at fud.no> added the comment:

You're right. I got it confused with the conn object in the code I was working on, because it turns out that it has an execute() method:

>>> import sqlite3
>>> c = sqlite3.connect('test.db')
>>> c.execute('SELECT * FROM tbl')
<sqlite3.Cursor object at 0x7f6dc7a07c00>

Closing, apologies for the noise!

----------
stage: patch review -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43396>
_______________________________________


More information about the Python-bugs-list mailing list