[issue42624] sqlite3 package document mistake

LIU Qingyuan report at bugs.python.org
Sat Dec 19 05:17:20 EST 2020


LIU Qingyuan <possnioo2 at gmail.com> added the comment:

Python 3.9.1 (default, Dec 11 2020, 14:32:07) 
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
>>> conn = sqlite3.connect("test.db")
>>> conn.execute("CREATE TABLE test (id INTEGER, str TEXT);")
<sqlite3.Cursor object at 0x7ff99f2df3b0>
>>> conn.execute("CREATE TABLE test (id INTEGER, str TEXT);")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
sqlite3.OperationalError: table test already exists
>>> 


I think the reproduction is way too easy and has nothing special so I didn't include one at the very beginning. That's a simple reproduction on interactive console.

----------

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


More information about the Python-bugs-list mailing list