]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Update dbapi_transactions.rst (#8032)
authorRobert Kulagowski <rkulagow@schedulesdirect.org>
Wed, 18 May 2022 20:25:18 +0000 (15:25 -0500)
committerGitHub <noreply@github.com>
Wed, 18 May 2022 20:25:18 +0000 (22:25 +0200)
If you're defining 'y=row.y' then you might as well use 'y' in the print statement.

doc/build/tutorial/dbapi_transactions.rst

index da07de87cbafe86994d312e9ef8ac7a4c1936fc9..e5a499786e31b22e0b42db984bbc2808d1ab9462 100644 (file)
@@ -270,7 +270,7 @@ Below we illustrate a variety of ways to access rows.
           y = row.y
 
           # illustrate use with Python f-strings
-          print(f"Row: {row.x} {row.y}")
+          print(f"Row: {row.x} {y}")
 
   ..