]> granicus.if.org Git - python/commit
#4759: allow None as first argument of bytearray.translate(), for consistency with...
authorGeorg Brandl <georg@python.org>
Sun, 28 Dec 2008 11:44:14 +0000 (11:44 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 28 Dec 2008 11:44:14 +0000 (11:44 +0000)
commitccc47b6eee267d6661c8521578e2fc9d53494029
tree5bd70ee57571e66f907c68e57110430eefa8fda7
parent15fafbe6f2c4e78037c9c4bd4e914ebbedc3b2bd
#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.
Lib/test/test_bytes.py
Misc/NEWS
Objects/bytearrayobject.c