[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#18596: 25.0.50; MS-Windows needs a different default for python-shel
From: |
Fabián Ezequiel Gallina |
Subject: |
bug#18596: 25.0.50; MS-Windows needs a different default for python-shell-interpreter-args |
Date: |
Thu, 02 Oct 2014 21:51:40 -0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> 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