Doesn't seem to work with python3
Bug #1305039 reported by
Dasika Shishir
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Committed
|
Medium
|
Andreas Roehler |
Bug Description
Although I changed the variable py-shell-name to 'python3', python2 only seem to load again and again. I'm using emacs-24.3 on f20.
Changed in python-mode: | |
importance: | Undecided → Medium |
assignee: | nobody → Andreas Roehler (a-roehler) |
To post a comment you must log in.
Am 09.04.2014 14:33, schrieb Dasika Shishir:
> Public bug reported:
>
> Although I changed the variable py-shell-name to 'python3', python2 only
> seem to load again and again. I'm using emacs-24.3 on f20.
Can't reproduce, but see behavior is not that well documented as it should be.
Asume a shebang in buffer comes between.
Herewith a sum-up:
#########
Selecting a Python shell
Customize default Python shell as `py-shell-name'
`py-shell-name' might be an installed executable as
shell command `type' would display, but also a
PATH/TO/(I)PYTHON, of a virtualenv for example
You might run code by another (I)Python-version than default.
Normally this would happen if a shebang in buffer specifies it.
Shebang precedes default py-shell-name.
In case you will run code by default-shell, ignoring shebang, set py-shell- name-p' to. This might be done also via menu
`py-force-
Python/.../Switches
Another way to enforce a different shell than default is using statement- python3' Interpreter/ Other/Ignoring Defaults
commands which end in version like `py-execute-
See menu Python/
########
Does this solves it for you?
If not, please describe exectly which command was used in which circumstances.
Also some example code might help.
Andreas