1.1 --- a/vRecurrence.py Tue Oct 24 00:43:43 2017 +0200
1.2 +++ b/vRecurrence.py Tue Oct 24 01:05:08 2017 +0200
1.3 @@ -710,12 +710,11 @@
1.4 return "%s(%r, %r, %r, %r)" % (self.__class__.__name__, self.level,
1.5 self.args, self.qualifier, self.first)
1.6
1.7 - def materialise(self, start, end, inclusive=False):
1.8 + def select(self, start, end, inclusive=False):
1.9
1.10 """
1.11 - Starting at 'start', materialise instances up to but not including any
1.12 - at 'end' or later, returning at most 'count' if specified. A list of
1.13 - instances is returned.
1.14 + Return an iterator over instances starting at 'start' and continuing up
1.15 + to but not including any at 'end' or later.
1.16
1.17 If 'inclusive' is specified, the selection of instances will include the
1.18 end of the search period if present in the results.
1.19 @@ -723,8 +722,19 @@
1.20
1.21 start = to_tuple(start)
1.22 end = to_tuple(end)
1.23 - results = self.materialise_items(start, start, end, inclusive)
1.24 - return list(results)
1.25 + return self.materialise_items(start, start, end, inclusive)
1.26 +
1.27 + def materialise(self, start, end, inclusive=False):
1.28 +
1.29 + """
1.30 + Starting at 'start', materialise instances up to but not including any
1.31 + at 'end' or later. A list of instances is returned.
1.32 +
1.33 + If 'inclusive' is specified, the selection of instances will include the
1.34 + end of the search period if present in the results.
1.35 + """
1.36 +
1.37 + return list(self.select(start, end, inclusive))
1.38
1.39 class Pattern(Selector):
1.40