We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edf8f87 commit e532f90Copy full SHA for e532f90
source_py3/python_toolbox/sequence_tools/sequence_popping_view.py
@@ -11,7 +11,7 @@
11
12
from python_toolbox import caching
13
14
-from .misc import CuteSequence
+from .misc import CuteSequence, get_length
15
16
infinity = float('inf')
17
infinities = (infinity, -infinity)
@@ -72,8 +72,8 @@ def clear(self):
72
73
copy = lambda self: type(self)(self.sequence,
74
popped_indices=self.popped_indices)
75
- length = property(
76
- lambda self: len(self.sequence) - len(self.popped_indices))
+ length = property(lambda self: get_length(self.sequence) -
+ get_length(self.popped_indices))
77
__repr__ = lambda self: '%s(%s, popped_indices=%s)' % (
78
type(self).__name__, self.sequence, self.popped_indices
79
)
0 commit comments