diff options
Diffstat (limited to 'Demo')
-rwxr-xr-x | Demo/classes/Rat.py | 4 | ||||
-rwxr-xr-x | Demo/classes/bitvec.py | 7 |
2 files changed, 0 insertions, 11 deletions
diff --git a/Demo/classes/Rat.py b/Demo/classes/Rat.py index 8caf1c5..6a350e8 100755 --- a/Demo/classes/Rat.py +++ b/Demo/classes/Rat.py @@ -226,10 +226,6 @@ class Rat: def __bool__(a): return a.__num != 0 - # coercion - def __coerce__(a, b): - return a, Rat(b) - def test(): '''\ Test function for rat module. 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) |