Message360652
The imaplib documentation says:
> Each command returns a tuple: (type, [data, ...]) where type is usually
> 'OK' or 'NO', and data is either the text from the command response, or
> mandated results from the command. Each data is either a string, or a
> tuple. If a tuple, then the first part is the header of the response,
> and the second part contains the data (ie: ‘literal’ value).
However, "Each data is either a string, or a tuple" does not appear to be correct. If the element of data is not a tuple, it appears to be a bytes object, not a string (because it is dealing with network streams of bytes internally)
This is probably old documentation left over from python 2, when strings and bytes were the same. |
|
Date |
User |
Action |
Args |
2020-01-24 20:24:36 | dkg | set | recipients:
+ dkg, barry, r.david.murray |
2020-01-24 20:24:36 | dkg | set | messageid: <1579897476.32.0.1859965096.issue39447@roundup.psfhosted.org> |
2020-01-24 20:24:36 | dkg | link | issue39447 messages |
2020-01-24 20:24:36 | dkg | create | |
|