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

Karsten Hilbert Karsten.Hilbert at gmx.net
Sat Aug 29 15:31:54 EDT 2020


> However the problem appears to be that internally in Python 3 mailbox
> class there is an assumption that it's being given 'ascii'.

Do you really _need_ the mailbox class ? From what you've
written so far my understanding was that you receive data
(bytes) and want to append that to a file (which happens
to be an mbox).

Can't you "just do that" ?

IOW, read the bytes, open the file, dump the bytes, close the file ?

Karsten


More information about the Python-list mailing list