Skip to content

Commit 89badac

Browse files
committed
-
1 parent c08b079 commit 89badac

File tree

1 file changed

+1
-0
lines changed
  • source_py2/python_toolbox/combi/perming

1 file changed

+1
-0
lines changed

source_py2/python_toolbox/combi/perming/perm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ def __eq__(self, other):
163163
__ne__ = lambda self, other: not (self == other)
164164
__hash__ = lambda self: hash(self._reduced)
165165
__bool__ = lambda self: bool(self._perm_sequence)
166+
__nonzero__ = __bool__
166167

167168
def __contains__(self, item):
168169
try:

0 commit comments

Comments
 (0)