[prev in list] [next in list] [prev in thread] [next in thread]
List: pypy-dev
Subject: Re: [pypy-dev] Problem with cgi module and pypy handling POST request
From: Matti Picus <matti.picus () gmail ! com>
Date: 2018-03-26 21:06:36
Message-ID: 10ca5c20-5aec-1bd2-a02c-3263ca9530c8 () gmail ! com
[Download RAW message or body]
[Attachment #2 (text/html)]
<html style="direction: ltr;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body bidimailui-charset-is-forced="true" style="direction: ltr;"
text="#000000" bgcolor="#FFFFFF">
On 27/03/18 00:00, Etienne Robillard wrote:<br>
<blockquote type="cite"
cite="mid:72f626f1-164c-5618-1c74-86a1260a3c80@yandex.com">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">Le 2018-03-26 Ã 13:55, Matti Picus a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:6260d911-47ea-49a1-1ab6-ca7ec9195412@gmail.com">
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8">
<style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } \
</style> On 26/03/18 18:33, Etienne Robillard wrote:<br>
<blockquote type="cite"
cite="mid:d65e258f-ced1-5d28-3143-59ee2fbf78f9@yandex.com">
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8">
<p>The output is: <wsgiref.validate.InputWrapper instance
at 0xb3e1c784> <br>
</p>
<p><br>
</p>
<p>I also managed to fix this issue by removing the
"1<<16" parameter in self.fp.readline().</p>
<p><br>
</p>
<p>Regards,</p>
<p><br>
</p>
<p>Etienne</p>
<p><br>
</p>
<br>
</blockquote>
This would fail in the same way on Cpython 2, it is a "feature"
of that method. <br>
In both PyPy and CPython, the interface was changed for python3
to accept a size parameter.<br>
<br>
Matti<br>
</blockquote>
<br>
Sorry, but without my patch I cannot make PyPy 5.9.0 to handle a
POST request.<br>
<br>
Could you please suggest any other fix?<br>
<br>
Etienne <br>
<pre class="moz-signature" cols="72">--
Etienne Robillard
<a class="moz-txt-link-abbreviated" href="mailto:tkadm30@yandex.com" \
moz-do-not-send="true">tkadm30@yandex.com</a> <a class="moz-txt-link-freetext" \
href="https://www.isotopesoftware.ca/" \
moz-do-not-send="true">https://www.isotopesoftware.ca/</a></pre> </blockquote>
<br>
Your fix is correct and necessary for python2, both on PyPy and on
CPython. You can run the original code only under python3.<br>
Note that there are two python implementations called PyPy 5.9.0,
one implements python2 and the other implements python3<br>
Matti<br>
</body>
</html>
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic