summaryrefslogtreecommitdiffstats
path: root/Demo/classes/Complex.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/classes/Complex.py')
-rwxr-xr-xDemo/classes/Complex.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/Demo/classes/Complex.py b/Demo/classes/Complex.py
index b6c4b10..64c56d4 100755
--- a/Demo/classes/Complex.py
+++ b/Demo/classes/Complex.py
@@ -39,7 +39,6 @@
#
# These conversions accept complex arguments only if their imaginary part is zero:
# int(z)
-# long(z)
# float(z)
#
# The following operators accept two complex numbers, or one complex number
@@ -147,11 +146,6 @@ class Complex:
raise ValueError("can't convert Complex with nonzero im to int")
return int(self.re)
- def __long__(self):
- if self.im:
- raise ValueError("can't convert Complex with nonzero im to long")
- return int(self.re)
-
def __float__(self):
if self.im:
raise ValueError("can't convert Complex with nonzero im to float")