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

2008-12-28 Thread Antoine Pitrou
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

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

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

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

2008-12-27 Thread Georg Brandl
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

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

2008-12-27 Thread Benjamin Peterson
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