IMAP Email Question
Emile van Sebille
emile at fenx.com
Fri Jul 5 09:30:09 EDT 2002
Charel Yueng
> I cannot process any string data because it's a tuple. I can't seem
> to be able to parse any data.
>
> What should be my approach to this problem?
> what I need to extract is separated by the '=' sign ie.
> charles,yueng,someaddress
>
>>> s =
'fname=charles\r\nfname=yueng\r\naddress=someaddress\r\n\r\n\r\n'
>>> [x.split("=") for x in s.split()]
[['fname', 'charles'], ['fname', 'yueng'], ['address', 'someaddress']]
--
Emile van Sebille
emile at fenx.com
---------
More information about the Python-list
mailing list