Commit 50a42028 authored by Kirill Smelkov's avatar Kirill Smelkov

lib/zodb: Try to clarify zconn_at intent

It is hard for people to understand current wording, so let's expand
zconn_at description to additionally explain what it is providing with
second set of words, which, hopefully, lowers potential ambiguity a bit.

/reported-by @jwolf083
parent b573811d
...@@ -140,6 +140,9 @@ def _deactivate_bucket(bucket): ...@@ -140,6 +140,9 @@ def _deactivate_bucket(bucket):
# zconn_at returns tid as of which ZODB connection is viewing the database. # zconn_at returns tid as of which ZODB connection is viewing the database.
#
# In other words zconn_at returns database state corresponding to database view
# of the connection.
def zconn_at(zconn): # -> tid def zconn_at(zconn): # -> tid
assert isinstance(zconn, ZODB.Connection.Connection) assert isinstance(zconn, ZODB.Connection.Connection)
if zconn.opened is None: # zconn must be in "opened" state if zconn.opened is None: # zconn must be in "opened" state
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment