diff options
author | Georg Brandl <georg@python.org> | 2008-12-28 11:54:53 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-12-28 11:54:53 (GMT) |
commit | 6425a2fa8f354e755f876f2dea708697e42cc9fd (patch) | |
tree | 45f306eac9c148cc56fe9aeef40fbbabc2a25067 /Misc | |
parent | e7d1e7e5d43e369db602bab35a6d5a47b6e5569e (diff) | |
download | cpython-6425a2fa8f354e755f876f2dea708697e42cc9fd.zip cpython-6425a2fa8f354e755f876f2dea708697e42cc9fd.tar.gz cpython-6425a2fa8f354e755f876f2dea708697e42cc9fd.tar.bz2 |
Backport r67974:
#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 2.7 alpha 1 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. |