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

Berker Peksag report at bugs.python.org
Thu Mar 4 08:55:07 EST 2021


Berker Peksag <berker.peksag at gmail.com> added the comment:

https://github.com/python/cpython/blame/e161ec5dd7ba9355eb06757b9304019ac53cdf69/Doc/library/sqlite3.rst#L74-L76 is not a standalone snippet. It uses the cursor object created at https://github.com/python/cpython/blame/e161ec5dd7ba9355eb06757b9304019ac53cdf69/Doc/library/sqlite3.rst#L54-L56 So there is nothing wrong here.

Maybe we can rename c to cur to make it more readable and harder to be confused with a connection object.

----------

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


More information about the Python-bugs-list mailing list