Python3.3 str() bug?

Helmut Jarausch jarausch at
Fri Nov 9 10:18:12 CET 2012


probably I'm missing something.

Using   str(Arg) works just fine if  Arg is a list.

gives the error
TypeError: coercing to str: need bytes, bytearray or buffer-like object, 
           list found

If this isn't a bug how can I use str(Arg,encoding='latin-1') in general.
Do I need to flatten any data structure which is normally excepted by str() ?

Many thanks for a hint,

More information about the Python-list mailing list