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 berker.peksag
Recipients berker.peksag, docs@python, erlendaasland, toreanderson
Date 2021-03-04.13:46:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614865563.84.0.131264999195.issue43396@roundup.psfhosted.org>
In-reply-to
Content
Could you please post the full snippet?

c is already set to a cursor at https://github.com/python/cpython/blame/e161ec5dd7ba9355eb06757b9304019ac53cdf69/Doc/library/sqlite3.rst#L56:

    c = conn.cursor()

And the following example works fine:

    >>> import sqlite3 as s
    >>> conn = s.connect(":memory:")
    >>> c = conn.cursor()
    >>> c.execute("select 1")
    <sqlite3.Cursor object at 0x00000291A5A1F960>
    >>> c.fetchone()
    (1,)
History
Date User Action Args
2021-03-04 13:46:03berker.peksagsetrecipients: + berker.peksag, docs@python, erlendaasland, toreanderson
2021-03-04 13:46:03berker.peksagsetmessageid: <1614865563.84.0.131264999195.issue43396@roundup.psfhosted.org>
2021-03-04 13:46:03berker.peksaglinkissue43396 messages
2021-03-04 13:46:03berker.peksagcreate