<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-02-06 11:27 GMT+01:00 Armin Rigo <span dir="ltr"><<a href="mailto:arigo@tunes.org" target="_blank">arigo@tunes.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>
<span class=""><br>
On 6 February 2015 at 11:15, Amaury Forgeot d'Arc <<a href="mailto:amauryfa@gmail.com">amauryfa@gmail.com</a>> wrote:<br>
> This has other implications.<br>
> For example, sys.stdout points to an invalid file descriptor,<br>
> and I remember that old versions of pythonw.exe used to freeze after<br>
> printing 8192 characters.<br>
<br>
</span>I'm not finding anything special done with stdout if we're<br>
pythonw.exe.  Can you be more specific?<br></blockquote><div><br></div><div>CPython3 has this code to set sys.stdout to None in this case:</div><div><a href="https://hg.python.org/cpython/file/v3.3.4/Python/pythonrun.c#l1083">https://hg.python.org/cpython/file/v3.3.4/Python/pythonrun.c#l1083</a></div><div><br></div><div>But that's probably only for python3, python2 chose to not change anything:<br></div><div><a href="http://bugs.python.org/issue706263">http://bugs.python.org/issue706263</a><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Otherwise I suppose the way forward is to produce pypyw.exe (by<br>
editing rpython/translator/platform/windows.py, gen_makefile(), rule<br>
for $(DEFAULT_TARGET), to run $(CC_LINK) twice instead of once), and<br>
then to wait until people report issues with it.<br>
<br>
<br>
A bientôt,<br>
<br>
Armin.<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Amaury Forgeot d'Arc</div>
</div></div>