Question about wsgi.input
Diez B. Roggisch
deets at nospam.web.de
Mon May 26 15:54:54 EDT 2008
inhahe schrieb:
> That's what I would have thought, just seems strange since it seems to imply
> that if I use StringIO or cStringIO, then whenever i write to it i have to
> save the position, seek to the end, write, and then seek to the position i
> saved. Are there any other classes that are more suitable for pipes, but
> qualify as 'file-like objects'?
Who uses StringIO for what? if you have two processes (server and
application), you can of course use a pipe of some sort. If you write a
WSGI-server that is supposed to pass the wsgi.input to an application,
just use StringIO with the completely initialized data - there is no
writing in-between.
Diez
More information about the Python-list
mailing list