[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0
Etienne Robillard
report at bugs.python.org
Mon Jan 3 11:44:47 CET 2011
Etienne Robillard <erob at gthcfoundation.org> added the comment:
i'm thinking this issue is also well connected to:
http://bugs.python.org/issue1573931
so a backport of whatever solution comes to 3.2 would be a great
addition to Python 2.6 as the very minimum, in order to satisfy
minimal backward compatibility!
Thanks,
On 02/01/11 10:50 PM, Glenn Linderman wrote:
> Glenn Linderman <v+python at g.nevcal.com> added the comment:
>
> Rereading the doc link I pointed at, I guess detach() is part of the new API since 3.1, so doesn't need to be checked for in 3.1+ code... but instead, may need to be coded as:
>
> try:
> sys.stdin = sys.stdin.detach()
> except UnsupportedOperation:
> pass
>
> ----------
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue4953>
> _______________________________________
>
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4953>
_______________________________________
More information about the Python-bugs-list
mailing list