Subject: bug#18596: 25.0.50; MS-Windows needs a different default for python-shell-interpreter-args

From: [email-masked] (Fabián Ezequiel Gallina)
Date: Thu, 02 Oct 2014 21:51:40 -0300

Eli Zaretskii <[email-masked]> writes:

> With the default value, 'run-python' hangs in accept-process-output.
> This fixes that for me:
>
> --- lisp/progmodes/python.el~0	2014-10-01 06:33:59 +0300
> +++ lisp/progmodes/python.el	2014-10-01 18:10:48 +0300
> @@ -1739,7 +1739,8 @@
>    :group 'python
>    :safe 'stringp)
>  
> -(defcustom python-shell-interpreter-args "-i"
> +(defcustom python-shell-interpreter-args
> +  (if (eq system-type 'windows-nt) "-i -u" "-i")
>    "Default arguments for the Python interpreter."
>    :type 'string
>    :group 'python)
>

That makes things a little bit more annoying for the user as it breaks
changing from python to ipython easily since latter doesn't support the
"-u" switch.

I'll check this over the weekend to see if there's a better way to solve
this hang on Windows.

Thanks,
Fabián