]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- Fixed documentation for session weak_identity_map -
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 9 Apr 2009 21:47:49 +0000 (21:47 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 9 Apr 2009 21:47:49 +0000 (21:47 +0000)
the default value is True, indicating a weak
referencing map in use.

CHANGES
lib/sqlalchemy/orm/session.py

diff --git a/CHANGES b/CHANGES
index bd853aac4be04c23564f36dcc162c7c3a3d5dfb1..418e7c2f6b9a39617f0caaa2a33948873637a0b1 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -31,6 +31,10 @@ CHANGES
       whereby a self referential relation
       from a base class to a joined-table subclass would 
       not configure correctly.
+
+    - Fixed documentation for session weak_identity_map - 
+      the default value is True, indicating a weak
+      referencing map in use.
       
 - sql
     - ``sqlalchemy.extract()`` is now dialect sensitive and can
index 954b313108aa5e69737ea0d423ea7b840894f91e..1e3a750d950fb51864d34f6b4c770fd8178986b4 100644 (file)
@@ -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().