Python 3 how to convert a list of bytes objects to a list of strings?

Grant Edwards grant.b.edwards at gmail.com
Fri Aug 28 09:56:38 EDT 2020


On 2020-08-28, Chris Green <cl at isbd.net> wrote:

> Maybe I shouldn't but Python 2 has been managing to do so for several
> years without any issues.  I know I *could* put the exceptions in a
> bucket somewhere and deal with them separately but I'd really rather
> not.

Then just leave it as bytes and do whatever processing you used to do
on the bytes instead of trying to converting it to a string.  What is
it you're doing that you think requires it be converted to a string?

--
Grant





More information about the Python-list mailing list