__trunc__ = __int__
- @property
def real(self):
return self
+ real = property(real)
- @property
def imag(self):
return Decimal(0)
+ imag = property(imag)
def conjugate(self):
return self
(opa, opb) = self._fill_logical(context, self._int, other._int)
# make the operation, and clean starting zeroes
- result = "".join(str(int(a)|int(b)) for a,b in zip(opa,opb))
+ result = "".join([str(int(a)|int(b)) for a,b in zip(opa,opb)])
return _dec_from_triple(0, result.lstrip('0') or '0', 0)
def logical_xor(self, other, context=None):
(opa, opb) = self._fill_logical(context, self._int, other._int)
# make the operation, and clean starting zeroes
- result = "".join(str(int(a)^int(b)) for a,b in zip(opa,opb))
+ result = "".join([str(int(a)^int(b)) for a,b in zip(opa,opb)])
return _dec_from_triple(0, result.lstrip('0') or '0', 0)
def max_mag(self, other, context=None):
Library
-------
+- Restore Python 2.3 compatibility for decimal.py.
+
- Issue #3638: Remove functions from _tkinter module level that depend on
TkappObject to work with multiple threads.