[Python-checkins] r68321 - in python/branches/py3k: Lib/decimal.py Misc/NEWS
mark.dickinson
python-checkins at python.org
Sun Jan 4 22:34:18 CET 2009
Author: mark.dickinson
Date: Sun Jan 4 22:34:18 2009
New Revision: 68321
Log:
Merged revisions 68317-68318 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68317 | mark.dickinson | 2009-01-04 21:22:02 +0000 (Sun, 04 Jan 2009) | 2 lines
More Python 2.3 compatibility fixes for decimal.py.
........
r68318 | mark.dickinson | 2009-01-04 21:25:40 +0000 (Sun, 04 Jan 2009) | 2 lines
Misc/NEWS entry for r68317
........
Modified:
python/branches/py3k/ (props changed)
python/branches/py3k/Lib/decimal.py
python/branches/py3k/Misc/NEWS
Modified: python/branches/py3k/Lib/decimal.py
==============================================================================
--- python/branches/py3k/Lib/decimal.py (original)
+++ python/branches/py3k/Lib/decimal.py Sun Jan 4 22:34:18 2009
@@ -1555,13 +1555,13 @@
__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
@@ -3262,7 +3262,7 @@
(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):
@@ -3276,7 +3276,7 @@
(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):
Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS (original)
+++ python/branches/py3k/Misc/NEWS Sun Jan 4 22:34:18 2009
@@ -82,6 +82,8 @@
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.
More information about the Python-checkins
mailing list