[python] Figured out how to go from email.Message.Message to string

David Stockwell winexpert at hotmail.com
Thu Jun 17 12:38:22 CEST 2004


It took a little bit of digging but I finally figured it out by looking in 
my /usr/local/lib/py* directory's python modules.

Turns out in the Message.py module there is a __str__ method you can call to 
convert to a string.  And when i read more I found out its doing a fancy 
flatten.  I've seen references to flatten around so this will help reinforce 
in my mind what it means for a flat tened or flat python object.




David
-------
Tracfone: http://cellphone.duneram.com/index.html
Cam: http://www.duneram.com/cam/index.html
Tax: http://www.duneram.com/index.html

_________________________________________________________________
Looking to buy a house? Get informed with the Home Buying Guide from MSN 
House & Home. http://coldwellbanker.msn.com/





More information about the Python-list mailing list