Skip to content

Use weakref.WeakSet rather than transaction.weakset.WeakSet#280

Merged
jmuchemb merged 1 commit into
masterfrom
weakset
Sep 23, 2019
Merged

Use weakref.WeakSet rather than transaction.weakset.WeakSet#280
jmuchemb merged 1 commit into
masterfrom
weakset

Conversation

@jmuchemb
Copy link
Copy Markdown
Member

No description provided.

Comment thread src/ZODB/DB.py
result = []
for pool in six.itervalues(self.pools):
result.extend(pool.available)
return tuple(result)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you wonder, it looks like dead code. I found no use in this repository or ZEO, and the commit message that added these methods doesn't explain them.

Copy link
Copy Markdown
Member

@jamadden jamadden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@jmuchemb jmuchemb merged commit 98dc5f1 into master Sep 23, 2019
@jmuchemb jmuchemb deleted the weakset branch September 23, 2019 09:34
jamadden added a commit that referenced this pull request Jun 12, 2020
ConnectionPool and ConnectionPool.map both had docstrings and were used by third-party code. People should be warned about this potentially breaking change.
jamadden added a commit that referenced this pull request Jun 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants