reusing sys.stdin?
Graham Guttocks
graham_guttocks at yahoo.co.nz
Sun Apr 15 18:44:59 EDT 2001
"Ixokai" <news at myNOSPAM.org> wrote:
> You can save what is in them at any one point in time by just reading it
> into a temporary variable for accessing later; the below will likely work
> fine for you:
>
> import rfc822, sys, cStringIO
>
> stdin = cStringIO.StringIO(sys.stdin.read())
>
> message_headers = rfc822.Message(stdin)
Yes, it does. Thanks so much!
Cheers,
Graham
_____________________________________________________________________________
http://movies.yahoo.com.au - Yahoo! Movies
- Now showing: Dude Where's My Car, The Wedding Planner, Traffic..
More information about the Python-list
mailing list