bug-gnu-emacs
[Top][All Lists]
Advanced

[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: Eli Zaretskii
Subject: bug#18596: 25.0.50; MS-Windows needs a different default for python-shell-interpreter-args
Date: Fri, 03 Oct 2014 11:15:00 +0300

> From: fgallina@gnu.org (Fabián Ezequiel Gallina)
> Cc: bug-gnu-emacs@gnu.org
> Date: Thu, 02 Oct 2014 21:51:40 -0300
> 
> 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.

You could remove the -u when invoking ipython.

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

Thanks.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]