[issue4759] bytearray.translate() should support None first argument
Antoine Pitrou
report at bugs.python.org
Sun Dec 28 11:40:48 CET 2008
Antoine Pitrou <pitrou at 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
Also, the patch should probably be backported to trunk.
----------
versions: +Python 2.7 -Python 3.0
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4759>
_______________________________________
More information about the Python-bugs-list
mailing list