On 2020-08-27, Marco Sulla <marco.sulla.pyt...@gmail.com> wrote: > Are you sure you want `str()`? > >>>> str(b'aaa') > "b'aaa'" > > Probably you want: > > map(lambda x: x.decode(), bbb)
If you're an old Scheme or Lisp programmer. :) This is probably the more usual way to spell it: sss = [x.decode() for x in bbb] -- https://mail.python.org/mailman/listinfo/python-list