summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/session.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2009-04-09 21:47:49 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2009-04-09 21:47:49 +0000
commit0790f9c6acbe890ed3e344d43ca785853d958300 (patch)
tree4cca224978555c23b224be7b106b6a4cbb2c2849 /lib/sqlalchemy/orm/session.py
parent3d9389fcafbdd9300070b37c4fe71e1d03707f9d (diff)
downloadsqlalchemy-0790f9c6acbe890ed3e344d43ca785853d958300.tar.gz
- Fixed documentation for session weak_identity_map -
the default value is True, indicating a weak referencing map in use.
Diffstat (limited to 'lib/sqlalchemy/orm/session.py')
-rw-r--r--lib/sqlalchemy/orm/session.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/orm/session.py b/lib/sqlalchemy/orm/session.py
index 954b31310..1e3a750d9 100644
--- a/lib/sqlalchemy/orm/session.py
+++ b/lib/sqlalchemy/orm/session.py
@@ -158,13 +158,13 @@ def sessionmaker(bind=None, class_=None, autoflush=True, autocommit=False,
before each transaction is committed.
weak_identity_map
- When set to the default value of ``False``, a weak-referencing map is
+ When set to the default value of ``True``, a weak-referencing map is
used; instances which are not externally referenced will be garbage
collected immediately. For dereferenced instances which have pending
changes present, the attribute management system will create a temporary
strong-reference to the object which lasts until the changes are flushed
to the database, at which point it's again dereferenced. Alternatively,
- when using the value ``True``, the identity map uses a regular Python
+ when using the value ``False``, the identity map uses a regular Python
dictionary to store instances. The session will maintain all instances
present until they are removed using expunge(), clear(), or purge().