[Python-mode] py-execute-region - was: [Merge] lp:~yagnesh/python-mode/py-shell into lp:python-mode
Andreas Röhler
andreas.roehler at online.de
Thu Jan 26 10:42:56 CET 2012
Am 26.01.2012 09:43, schrieb yagnesh:
> On 01/26/2012 04:45 PM, Andreas Roehler wrote:
>> Hi,
>>
>> as `py-shell-name' will exist with some probability, don't see
>> how `py-choose-shell-by-shebang' get's a chance that way.
>>
>> Do you experienced a related bug prior to this change?
>> Would prefer to proceed with some example.
>>
>> Thanks contributing,
>>
>> Andreas
>
>
> Hello Andreas,
>
> lets say I have this in my .emacs
>
> ---------------------------------------------------
> (require 'python-mode)
> (add-hook 'python-mode-hook
> (lambda ()
> (setq py-shell-name "ipython")))
> ---------------------------------------------------
>
> now I open a file with shebang containing
>
> #!/usr/bin/env python3
>
> and press C-c C-c it takes me to a python3 shell instead of ipython.
Hi all,
intend to change
py-execute-region
accepting an optional argument "execute-with-this-shell-instead-of-shebang"
would replace "&optional async", as "async" is broken for years and
no-one complained.
Agreed?
Cheers,
Andreas
More information about the Python-mode
mailing list