summaryrefslogtreecommitdiff
path: root/doc/build/orm/session_state_management.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/build/orm/session_state_management.rst')
-rw-r--r--doc/build/orm/session_state_management.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/build/orm/session_state_management.rst b/doc/build/orm/session_state_management.rst
index 090bf7674..40d6295df 100644
--- a/doc/build/orm/session_state_management.rst
+++ b/doc/build/orm/session_state_management.rst
@@ -79,12 +79,12 @@ set-like collection. All items present may be accessed using the iterator
interface::
for obj in session:
- print obj
+ print(obj)
And presence may be tested for using regular "contains" semantics::
if obj in session:
- print "Object is present"
+ print("Object is present")
The session is also keeping track of all newly created (i.e. pending) objects,
all objects which have had changes since they were last loaded or saved (i.e.