Skip to content

Commit 54c3e6b

Browse files
authored
Merge pull request #1164 from mathics/fixiszero
fix rational is_zero
2 parents 2aa530c + d4ceffe commit 54c3e6b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mathics/core/expression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2137,7 +2137,7 @@ def __neg__(self) -> 'Rational':
21372137

21382138
@property
21392139
def is_zero(self) -> bool:
2140-
return self.numerator().is_zero and not self.denominator().is_zero()
2140+
return self.numerator().is_zero # (implicit) and not (self.denominator().is_zero)
21412141

21422142

21432143
class Real(Number):

0 commit comments

Comments
 (0)