Martin Panter added the comment: I can look at enhancing the tests at some stage, but it isn’t a high priority for me.
Regarding translate() with no arguments, it makes sense if you see it as a kind of degenerate case of neither using a translation table, nor any set of bytes to delete: x.translate() == x.translate(None, b"") I admit it reads strange and probably isn’t useful. If people dislike it, it might be easiest to just add the keyword support and keep the first parameter as mandatory: without_nulls = bytes_with_nulls.translate(None, delete=b"\x00") ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27506> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com