diff options
| author | Barry Warsaw | 2016-01-06 23:27:09 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2016-01-06 23:27:09 -0500 |
| commit | 4f549f8655857aef64ed8c92c3339c32f5e942db (patch) | |
| tree | 20555011d3a0170a8a7642ff3a3adb3a3385f962 /src/mailman/utilities | |
| parent | 7bb24ce03197e7e4fc561d53ada02bcec73d6057 (diff) | |
| download | mailman-4f549f8655857aef64ed8c92c3339c32f5e942db.tar.gz mailman-4f549f8655857aef64ed8c92c3339c32f5e942db.tar.zst mailman-4f549f8655857aef64ed8c92c3339c32f5e942db.zip | |
Diffstat (limited to 'src/mailman/utilities')
| -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 |
