Skip to content

Commit 4ca3dfd

Browse files
Use PEP 8 variable names.
1 parent 7c51c67 commit 4ca3dfd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/src/user_guide/bind.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -724,11 +724,11 @@ statement can be built up as follows:
724724

725725
.. code-block:: python
726726
727-
bindValues = ["Gates", "Marvin", "Fay"]
728-
bindNames = [":" + str(i + 1) for i in range(len(bindValues))]
727+
bind_values = ["Gates", "Marvin", "Fay"]
728+
bind_names = [":" + str(i + 1) for i in range(len(bind_values))]
729729
sql = "select employee_id, first_name, last_name from employees " + \
730-
"where last_name in (%s)" % (",".join(bindNames))
731-
cursor.execute(sql, bindValues)
730+
"where last_name in (%s)" % (",".join(bind_names))
731+
cursor.execute(sql, bind_values)
732732
for row in cursor:
733733
print(row)
734734

0 commit comments

Comments
 (0)