[issue4759] bytearray.translate() should support None first argument

2008-12-28 Thread Georg Brandl
Georg Brandl 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 -> closed ___

[issue4759] bytearray.translate() should support None first argument

2008-12-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks like there's a problem: >>> bytearray().translate(None, None) Traceback (most recent call last): File "", line 1, in TypeError: Type NoneType doesn't support the buffer API >>> bytearray().translate(None, None) Erreur de segmentation Also, the patch s

[issue4759] bytearray.translate() should support None first argument

2008-12-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: Looks good to me. I don't think it should be applied to 3.0, though. -- nosy: +benjamin.peterson ___ Python tracker ___ _

[issue4759] bytearray.translate() should support None first argument

2008-12-27 Thread Georg Brandl
New submission from Georg Brandl : 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 status: open title: