Skip to content

Commit 5848353

Browse files
committed
Python3: __nonzero__
1 parent 4fe1a56 commit 5848353

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/sage/combinat/recognizable_series.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ def is_trivial_zero(self):
614614
not self[self.parent().indices()()])
615615

616616

617-
def __nonzero__(self):
617+
def __bool__(self):
618618
r"""
619619
Return whether this recognizable series is nonzero.
620620
@@ -654,6 +654,9 @@ def __nonzero__(self):
654654
return True
655655

656656

657+
__nonzero__ = __bool__
658+
659+
657660
def transposed(self):
658661
r"""
659662
Return the transposed series.

0 commit comments

Comments
 (0)