diff options
author | Georg Brandl <georg@python.org> | 2008-12-28 11:44:14 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-12-28 11:44:14 (GMT) |
commit | ccc47b6eee267d6661c8521578e2fc9d53494029 (patch) | |
tree | 5bd70ee57571e66f907c68e57110430eefa8fda7 /Misc | |
parent | 15fafbe6f2c4e78037c9c4bd4e914ebbedc3b2bd (diff) | |
download | cpython-ccc47b6eee267d6661c8521578e2fc9d53494029.zip cpython-ccc47b6eee267d6661c8521578e2fc9d53494029.tar.gz cpython-ccc47b6eee267d6661c8521578e2fc9d53494029.tar.bz2 |
#4759: allow None as first argument of bytearray.translate(), for consistency with bytes.translate().
Also fix segfault for bytearray.translate(x, None) -- will backport this part to 3.0 and 2.6.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -12,6 +12,9 @@ What's New in Python 3.1 alpha 0 Core and Builtins ----------------- +- Issue #4759: None is now allowed as the first argument of + bytearray.translate(). It was always allowed for bytes.translate(). + - Added test case to ensure attempts to read from a file opened for writing fail. |