summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-04-12 15:51:51 (GMT)
committerGeorg Brandl <georg@python.org>2009-04-12 15:51:51 (GMT)
commitabc387747dc573e05a4b31387797a0272062b2ef (patch)
treec12c0a0e45cb06edb87798a7831b1c8f79033015 /Misc/NEWS
parent78532baeabc4234e3894c775f2bb7e0a21c12e0e (diff)
downloadcpython-abc387747dc573e05a4b31387797a0272062b2ef.zip
cpython-abc387747dc573e05a4b31387797a0272062b2ef.tar.gz
cpython-abc387747dc573e05a4b31387797a0272062b2ef.tar.bz2
Add bytes/bytearray.maketrans() to mirror str.maketrans(), and deprecate
string.maketrans() which actually works on bytes. (Also closes #5675.)
Diffstat (limited to 'Misc/NEWS')
-rw-r--r--Misc/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index a08f320..b89516c 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,11 @@ What's New in Python 3.1 beta 1?
Core and Builtins
-----------------
+- The string.maketrans() function is deprecated; there is a new static method
+ maketrans() on the bytes and bytearray classes. This removes confusion about
+ the types string.maketrans() is supposed to work with, and mirrors the
+ methods available on the str class.
+
- Issue #2170: refactored xml.dom.minidom.normalize, increasing both
its clarity and its speed.