[Python-mode] py-python-command default

Jeff Bauer jeffrubic at gmail.com
Wed Sep 28 19:43:42 CEST 2011


On Wed, Sep 28, 2011 at 12:04:15PM -0400, Barry Warsaw wrote:
> On Sep 28, 2011, at 01:15 PM, David Miller wrote:
>
> >> Yes, please. :)  ipython is a separate program that doesn't come with stock
> >> Python.
> >>
> >How about conditionally setting it - this is essentially what Django does
> >with it's shell
> >
> >(defcustom py-python-command (if (executable-find "ipython") "ipython"
> >"python")
>
> I'm not entirely in favor of this.  While I have ipython installed, I still
> want to use regular 'ol python in my Emacs.  Of course, should you make this
> change I can always customize the variable.  OTOH, I don't want to stand in
> the way of what's really convenient for folks.
>
> So I guess I'm -0.  Georg, what do you think?
>
> -Barry

Agreed.  Django originally had this behavior.  I filed a patch
to fix the implicit assumption.  Vanilla python should be the
default, ipython (or whatever) when specifically requested.

Jeff Bauer
Rubicon, Inc.


More information about the Python-mode mailing list