[pypy-dev] Windows: pypyw.exe?

Amaury Forgeot d'Arc amauryfa at gmail.com
Fri Feb 6 12:14:56 CET 2015


2015-02-06 11:27 GMT+01:00 Armin Rigo <arigo at tunes.org>:

> Hi,
>
> On 6 February 2015 at 11:15, Amaury Forgeot d'Arc <amauryfa at gmail.com>
> wrote:
> > This has other implications.
> > For example, sys.stdout points to an invalid file descriptor,
> > and I remember that old versions of pythonw.exe used to freeze after
> > printing 8192 characters.
>
> I'm not finding anything special done with stdout if we're
> pythonw.exe.  Can you be more specific?
>

CPython3 has this code to set sys.stdout to None in this case:
https://hg.python.org/cpython/file/v3.3.4/Python/pythonrun.c#l1083

But that's probably only for python3, python2 chose to not change anything:
http://bugs.python.org/issue706263


> Otherwise I suppose the way forward is to produce pypyw.exe (by
> editing rpython/translator/platform/windows.py, gen_makefile(), rule
> for $(DEFAULT_TARGET), to run $(CC_LINK) twice instead of once), and
> then to wait until people report issues with it.
>
>
> A bientôt,
>
> Armin.
>



-- 
Amaury Forgeot d'Arc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20150206/71b9d5a0/attachment.html>


More information about the pypy-dev mailing list