[issue8256] TypeError: bad argument type for built-in operation

Amaury Forgeot d'Arc report at bugs.python.org
Mon May 10 16:54:23 CEST 2010


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

The patch is wrong: _PyUnicode_AsString(Py_None) should not return "utf8"!

I suggest that since PyOS_Readline() write the prompt to stderr, the conversion uses the encoding of stderr.

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8256>
_______________________________________


More information about the Python-bugs-list mailing list