[issue10879] cgi memory usage

R. David Murray report at bugs.python.org
Mon Jan 10 14:40:57 CET 2011


R. David Murray <rdmurray at bitdance.com> added the comment:

The email package does have a 'parser headers only' mode, but it doesn't do what you want, since it reads the remainder of the file and sets it as the payload of the single, un-nested Message object it returns.

Adding a flag to tell it to stop parsing instead of doing that will probably be fairly simple, but is a feature request.

However, I'm not clear on how that helps.  Doesn't FieldStorage also load everything into memory?

There's an open feature request for providing a way to use alternate backing stores for the bodies of message parts in the email package, which *would* address this issue.

----------
type:  -> feature request

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10879>
_______________________________________


More information about the Python-bugs-list mailing list