Antoine Pitrou <pitrou at free.fr> added the comment: I think Amaury is right. You could add a test that bytes are also accepted, though. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue8737> _______________________________________