Skip to content

Commit 1dc6531

Browse files
author
Erlend E. Aasland
committed
Address review: get rid of more temp vars
1 parent 39801ac commit 1dc6531

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Doc/includes/sqlite3/execute_1.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
cur.execute("create table lang (lang_name, lang_age)")
66

77
# This is the qmark style:
8-
name = "C"
9-
age = 49
10-
cur.execute("insert into lang values (?, ?)", (name, age))
8+
cur.execute("insert into lang values (?, ?)", ("C", 49))
119

1210
# The qmark style used with executemany():
1311
lang_list = [

0 commit comments

Comments
 (0)