[Zodb-checkins] SVN: ZODB/branches/3.6/src/ZODB/Connection.py Note
that nailing the type of oid to str may allow some
Tim Peters
tim.one at comcast.net
Mon Dec 12 11:55:16 EST 2005
Log message for revision 40737:
Note that nailing the type of oid to str may allow some
thread simplifications in Connection._invalidated handling.
Thanks to Florent Guillaume for noticing!
Changed:
U ZODB/branches/3.6/src/ZODB/Connection.py
-=-
Modified: ZODB/branches/3.6/src/ZODB/Connection.py
===================================================================
--- ZODB/branches/3.6/src/ZODB/Connection.py 2005-12-12 16:36:13 UTC (rev 40736)
+++ ZODB/branches/3.6/src/ZODB/Connection.py 2005-12-12 16:55:16 UTC (rev 40737)
@@ -125,6 +125,9 @@
# will execute atomically by virtue of the GIL. But some storage
# might generate oids where hash or compare invokes Python code. In
# that case, the GIL can't save us.
+ # Note: since that was written, it was officially declared that the
+ # type of an oid is str. TODO: remove the related now-unnecessary
+ # critical sections (if any -- this needs careful thought).
self._inv_lock = threading.Lock()
self._invalidated = d = {}
More information about the Zodb-checkins
mailing list