sys.ps2 warning
Bug #842552 reported by
Andreas Roehler
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Expired
|
Undecided
|
Unassigned |
Bug Description
py-shell doku says:
Warning: Don't use an interactive Python if you change sys.ps1 or
sys.ps2 from their default values, or if you're running code that
prints `>>> ' or `... ' at the start of a line. `python-mode' can't
distinguish your output from Python's output, and assumes that `>>> '
at the start of a line is a prompt from Python. Similarly, the Emacs
Shell mode code assumes that both `>>> ' and `... ' at the start of a
line are Python prompts. Bad things can happen if you fool either
mode.
;;;;;;;;;;;
Is this warning still valid?
If yes, Emacs should be able to deal with this, we should fix it
Changed in python-mode: | |
assignee: | nobody → Andreas Roehler (a-roehler) |
milestone: | none → 6.0.3 |
importance: | Undecided → Medium |
Changed in python-mode: | |
milestone: | 6.0.3 → 6.1 |
Changed in python-mode: | |
assignee: | Andreas Roehler (a-roehler) → nobody |
Changed in python-mode: | |
importance: | Medium → Undecided |
milestone: | 6.1.1 → none |
To post a comment you must log in.
can't imagine this warning is still valid.
py-shell has it's own process, the name shell is just a name here, it's not affected by common shell, bash variables etc. AFAIU.
OTOH should that kind of interference occur, we should consider it a bug and cure it.
Flag it incomplete for the moment. Let's see if any comments come in.