Remove __long__ methods from UserString and from Demo/ classes.

This commit is contained in:
Mark Dickinson 2009-01-11 11:54:02 +00:00
parent e97637daaa
commit c7d484de9b
3 changed files with 0 additions and 10 deletions

View file

@ -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")