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

Filip Gruszczyński report at bugs.python.org
Mon Mar 29 21:21:45 CEST 2010


Filip Gruszczyński <gruszczy at gmail.com> added the comment:

I have written a small patch, that solves the problem, but is disgusting. Could anyone tell me, how I can get some default encoding from Python internals (I have no idea where to look) and return it inside _PyUnicode_AsStringAndSize? Anyway, now when the error happens inside input, it raises an Exception properly. So now I only need to know, how to correct the bug in an elegant fashion.

----------
keywords: +patch
Added file: http://bugs.python.org/file16688/8256_1.patch

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


More information about the Python-bugs-list mailing list