diff options
Diffstat (limited to 'Demo/classes/Complex.py')
-rwxr-xr-x | Demo/classes/Complex.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/classes/Complex.py b/Demo/classes/Complex.py index a779897..2019cdf 100755 --- a/Demo/classes/Complex.py +++ b/Demo/classes/Complex.py @@ -165,7 +165,7 @@ class Complex: other = ToComplex(other) return cmp(other, self) - def __nonzero__(self): + def __bool__(self): return not (self.re == self.im == 0) abs = radius = __abs__ |