[mod_python] More file-like behavior

Rich Salz rsalz at zolera.com
Sun May 27 08:04:05 EST 2001


> Can you elaborate a bit or give some example on how something like this
> would be used? I.e. what advantage it would have over simply doing
> req.write() or req.read()?

It's a more complete implementation, so anyplace that wants a file
object can pass
	ContentReader(req)

Now, maybe most things just use req.read(), but we (at least) had some
code that wanted filename, etc.
	/r$



More information about the Mod_python mailing list