Serhiy Storchaka added the comment: I think that error message in 2.7 is correct. "String" means both str and unicode.
As for 3.x, agree, it should be corrected. But I prefer "str or bytes" or "string or bytes object". ---------- nosy: +serhiy.storchaka versions: -Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19985> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com