Steven D'Aprano <steve+pyt...@pearwood.info> added the comment:
Hi Sebastian, It will help if you do some minimal debugging before reporting what you think is a bug. Also, you should report what version you are upgrading from, not just the version you have upgraded to. It may help you to provide better bug reports if you read this: http://sscce.org/ "Dcoding unicode" does not make sense and never did, and hasn't been supported since since at least version 2.4: py> unicode(u'a', 'uft-8') Traceback (most recent call last): File "<stdin>", line 1, in ? TypeError: decoding Unicode is not supported One *encodes* Unicode to bytes, and *decodes* bytes to Unicode. What I believe is happening is that somewhere, somehow, your ``stringList`` variable has a Unicode string object in it, rather than all byte-strings. Calling `', '.join(stringList)` returns a Unicode string if any item in the list is Unicode. I'm closing this as "Not a bug" as it is not a bug in the language. ---------- nosy: +steven.daprano resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38925> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com