diff options
author | Erlend E. Aasland <erlend.aasland@innova.no> | 2022-08-22 10:03:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-22 10:03:24 +0200 |
commit | 18b1782192f85bd26db89f5bc850f8bee4247c1a (patch) | |
tree | b326e154ce4863047482b43605f7b0ffc31cdd5c /Doc/includes/sqlite3/rowclass.py | |
parent | 53e6a9a7254bdcd0538580ba7d799cd453e2dca5 (diff) | |
download | cpython-18b1782192f85bd26db89f5bc850f8bee4247c1a.tar.gz cpython-18b1782192f85bd26db89f5bc850f8bee4247c1a.zip |
gh-96121: Merge sqlite3.Row examples into sqlite3.Row class doc (#96122)
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Diffstat (limited to 'Doc/includes/sqlite3/rowclass.py')
-rw-r--r-- | Doc/includes/sqlite3/rowclass.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Doc/includes/sqlite3/rowclass.py b/Doc/includes/sqlite3/rowclass.py deleted file mode 100644 index fc60287069a..00000000000 --- a/Doc/includes/sqlite3/rowclass.py +++ /dev/null @@ -1,14 +0,0 @@ -import sqlite3 - -con = sqlite3.connect(":memory:") -con.row_factory = sqlite3.Row - -cur = con.cursor() -cur.execute("select 'John' as name, 42 as age") -for row in cur: - assert row[0] == row["name"] - assert row["name"] == row["nAmE"] - assert row[1] == row["age"] - assert row[1] == row["AgE"] - -con.close() |