Eli Bendersky <eli...@gmail.com> added the comment: The difference between 2.6 and 2.7 stems from the rewrite of the IO library in C that was made for 2.7
The error Terry sees gets thrown here (in Modules/_io/stringio.c): if (!PyUnicode_Check(obj)) { PyErr_Format(PyExc_TypeError, "string argument expected, got '%s'", Py_TYPE(obj)->tp_name); return NULL; } Therefore, I propose to change this error message to: "unicode argument expected, got '%s'" as Terry suggested. Adding Antoine, Benjamin and Daniel (listed as experts on IO) to nosy. Is there an objection to making this change in the error message? ---------- nosy: +benjamin.peterson, pitrou, stutzbach _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12434> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com