summaryrefslogtreecommitdiffstats
path: root/Demo/classes
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-01-11 11:54:02 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-01-11 11:54:02 (GMT)
commitc7d484de9bf61ce38cbbe5a071871100cc04c6d4 (patch)
treec5b654a7f73579ee648ffbc76ab6fadf4165641e /Demo/classes
parente97637daaa66b699c6d59b5ea91f40659d23dc66 (diff)
downloadcpython-c7d484de9bf61ce38cbbe5a071871100cc04c6d4.zip
cpython-c7d484de9bf61ce38cbbe5a071871100cc04c6d4.tar.gz
cpython-c7d484de9bf61ce38cbbe5a071871100cc04c6d4.tar.bz2
Remove __long__ methods from UserString and from Demo/ classes.
Diffstat (limited to 'Demo/classes')
-rwxr-xr-xDemo/classes/Complex.py6
-rwxr-xr-xDemo/classes/bitvec.py3
2 files changed, 0 insertions, 9 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")
diff --git a/Demo/classes/bitvec.py b/Demo/classes/bitvec.py
index 9ee3ebf..62b26cc 100755
--- a/Demo/classes/bitvec.py
+++ b/Demo/classes/bitvec.py
@@ -315,9 +315,6 @@ class BitVec:
def __int__(self):
return int(self._data)
- def __long__(self):
- return int(self._data)
-
def __float__(self):
return float(self._data)