mirror of
https://github.com/python/cpython.git
synced 2025-10-31 21:51:50 +00:00
Remove more cruft leftover from nb_coerce. Rename nb_coerce to
nb_reserved.
This commit is contained in:
parent
8ce81f767a
commit
16c7075164
15 changed files with 20 additions and 66 deletions
|
|
@ -311,13 +311,6 @@ def __invert__(self):
|
|||
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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue