Antoine Pitrou pit...@free.fr added the comment:
Looks like there's a problem:
bytearray().translate(None, None)
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: Type NoneType doesn't support the buffer API
bytearray().translate(None, None)
Erreur de segmentation
Georg Brandl ge...@python.org added the comment:
You're right (but the segfault isn't introduced by the patch).
Fixed segfault in 3.0 and 2.6 in r67975 and r67977.
Applied path in 3k and trunk in r67974 and r67976.
--
assignee: pitrou - georg.brandl
resolution: - accepted
status: open
New submission from Georg Brandl ge...@python.org:
bytes.translate() does. Patch attached.
--
assignee: pitrou
components: Interpreter Core
files: bytearray-translate.diff
keywords: patch
messages: 78390
nosy: georg.brandl, pitrou
priority: normal
severity: normal
stage: patch review
Benjamin Peterson benja...@python.org added the comment:
Looks good to me. I don't think it should be applied to 3.0, though.
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4759