Lines Matching full:values
6 Basically, these keep track of a set of allocatable values in
8 the range and return values into the range.
45 range. You can also free multiple values at once:
54 Note that this changes the min/max values:
59 To prevent adding values outside the min/max range, create the
72 you free values into it:
115 There is currently no way to find all allocated values, although
158 find it, return its index and its values.
202 This may return None, if no values are still available.
217 # values.
256 def free_multi(self, values): argument
257 "Free many values (provide any iterable)"
258 values = list(values)
259 values.sort()
260 self._free_multi('free_multi', values)
262 def _free_multi(self, how, values): argument
264 Free a (sorted) list of values.
266 if len(values) == 0:
269 while values:
270 # Take highest value, and any contiguous lower values.
273 highval = values.pop()
275 while len(values) and values[-1] == val - 1:
276 val = values.pop()