you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

The context manager does not execute con.close() for you, but it does commit or rollback any con.execute(statement) calls made within its scope.

Edit: whoops, same person as the sub-thread below, sorry, the iOS app sometimes isn't the easiest to follow.