[Python-mode] py-python-command default

2011-09-28 Thread Andreas Röhler

Hi Barry, hi all,

FYI: when patch by Thomas --thanks again BTW-- was merged,
py-python-command default changed

164

(defcustom py-python-command python

164
(defcustom py-python-command ipython


Please tell if you want back the default python.

BTW consider to deliver a couple of commands specifying the shell

py-execute-region-python3
py-execute-region-python2.7
py-execute-region-ipython

etc., which should be faster to use than customization.

Cheers,

Andreas
___
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode


Re: [Python-mode] py-python-command default

2011-09-28 Thread Barry Warsaw
On Sep 28, 2011, at 12:26 PM, Andreas Röhler wrote:

FYI: when patch by Thomas --thanks again BTW-- was merged,
py-python-command default changed

164

(defcustom py-python-command python

164
(defcustom py-python-command ipython


Please tell if you want back the default python.

Yes, please. :)  ipython is a separate program that doesn't come with stock
Python.

BTW consider to deliver a couple of commands specifying the shell

py-execute-region-python3
py-execute-region-python2.7
py-execute-region-ipython

etc., which should be faster to use than customization.

I think that would be nice.
-B


signature.asc
Description: PGP signature
___
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode


Re: [Python-mode] py-python-command default

2011-09-28 Thread David Miller

 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)

py-execute-region-python3
 py-execute-region-python2.7
 py-execute-region-ipython
 
 etc., which should be faster to use than customization.

+1


-- 
Love regards etc

David Miller
http://www.deadpansincerity.com
07854 880 883
___
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode


Re: [Python-mode] py-python-command default

2011-09-28 Thread Andreas Röhler

Am 28.09.2011 14:15, schrieb David Miller:


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)


reads good for me.
Let's see what others think.

BTW being back to default python rather per chance,
as redundancy between py-shell-name and py-python-command has been 
solved - and remaining py-shell-name was set that way.


We can change that any time.

Cheers,

Andreas






py-execute-region-python3

py-execute-region-python2.7
py-execute-region-ipython

etc., which should be faster to use than customization.



+1




___
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode


Re: [Python-mode] py-python-command default

2011-09-28 Thread Barry Warsaw
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


signature.asc
Description: PGP signature
___
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode


Re: [Python-mode] py-python-command default

2011-09-28 Thread Jeff Bauer
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.
___
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode


Re: [Python-mode] py-python-command default

2011-09-28 Thread Georg Brandl
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am 28.09.2011 18:04, schrieb Barry Warsaw:
 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?

I agree. IPython is nice, but its bulk is not needed for many things.  This is
what customize is for!

Georg
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.18 (GNU/Linux)

iEYEARECAAYFAk6Dc3MACgkQN9GcIYhpnLDtCQCgjifvBQcnLoIiJmPr/nRSqRY7
FYUAn0s1DHxZZ3Xc6+7NhvPp3AOWim0J
=7hIJ
-END PGP SIGNATURE-
___
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode