We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c08b079 commit 89badacCopy full SHA for 89badac
source_py2/python_toolbox/combi/perming/perm.py
@@ -163,6 +163,7 @@ def __eq__(self, other):
163
__ne__ = lambda self, other: not (self == other)
164
__hash__ = lambda self: hash(self._reduced)
165
__bool__ = lambda self: bool(self._perm_sequence)
166
+ __nonzero__ = __bool__
167
168
def __contains__(self, item):
169
try:
0 commit comments