summaryrefslogtreecommitdiffstats
path: root/Demo/classes/bitvec.py
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2007-09-21 20:19:23 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2007-09-21 20:19:23 (GMT)
commit16c7075164abe85f7cf750d6b63ee2b5ddaa2f54 (patch)
treefffa0bfcdd832cc4d5cb323748b74c13796344e6 /Demo/classes/bitvec.py
parent8ce81f767a48e9e645c523137c7f83e49f79f986 (diff)
downloadcpython-16c7075164abe85f7cf750d6b63ee2b5ddaa2f54.zip
cpython-16c7075164abe85f7cf750d6b63ee2b5ddaa2f54.tar.gz
cpython-16c7075164abe85f7cf750d6b63ee2b5ddaa2f54.tar.bz2
Remove more cruft leftover from nb_coerce. Rename nb_coerce to
nb_reserved.
Diffstat (limited to 'Demo/classes/bitvec.py')
-rwxr-xr-xDemo/classes/bitvec.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/Demo/classes/bitvec.py b/Demo/classes/bitvec.py
index 227a536..ae84439 100755
--- a/Demo/classes/bitvec.py
+++ b/Demo/classes/bitvec.py
@@ -311,13 +311,6 @@ class BitVec:
return BitVec(~self._data & ((1 << self._len) - 1), \
self._len)
- def __coerce__(self, otherseq, *rest):
- #needed for *some* of the arithmetic operations
- #rprt('%r.__coerce__%r\n' % (self, (otherseq,) + rest))
- if type(otherseq) != type(self):
- otherseq = bitvec(otherseq, *rest)
- return self, otherseq
-
def __int__(self):
return int(self._data)