diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/mailman/utilities/queries.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mailman/utilities/queries.py b/src/mailman/utilities/queries.py index 6f4bc6b4d..fa8cb04aa 100644 --- a/src/mailman/utilities/queries.py +++ b/src/mailman/utilities/queries.py @@ -26,6 +26,12 @@ from collections.abc import Sequence class QuerySequence(Sequence): + """A simple wrapper class around database query results. + + Use this to provide a sequence-like API around query results, such as + being able to use len() and slicing, where the results objects don't + natively provide them. + """ def __init__(self, query=None): super().__init__() self._query = query |
