A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/070256.html below:

reusing sys.stdin?

reusing sys.stdin? 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4