Skip to content

Commit 908d40a

Browse files
committed
-
1 parent 5be3440 commit 908d40a

File tree

1 file changed

+3
-3
lines changed
  • source_py3/python_toolbox/combi

1 file changed

+3
-3
lines changed

source_py3/python_toolbox/combi/perm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def __init__(self, number_or_perm_sequence, perm_space=None):
101101
### Finished analyzing `perm_space`. ##################################
102102

103103
self.is_pure = not (self.is_rapplied or self.is_dapplied
104-
or self.is_partial, self.is_combination)
104+
or self.is_partial or self.is_combination)
105105

106106
if not self.is_rapplied: self.unrapplied = self
107107
if not self.is_dapplied: self.undapplied = self
@@ -208,7 +208,6 @@ def number(self):
208208
)
209209

210210
@caching.CachedProperty
211-
@nifty_collections.LazyTuple.factory()
212211
def _perm_sequence(self):
213212
assert (0 <= self.number <
214213
self.just_dapplied_rapplied_perm_space.length)
@@ -234,7 +233,8 @@ def _perm_sequence(self):
234233
sequence_tools.CuteRange(len(result), infinity)
235234
))
236235
assert sequence_tools.get_length(result) == self.length
237-
return result
236+
return nifty_collections.LazyTuple(result,
237+
definitely_infinite=self.is_infinite)
238238

239239

240240

0 commit comments

Comments
 (0)