PyShell adds dots on first invocation

Bug #1016202 reported by Titus Barik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mode.el
Fix Released
High
Andreas Roehler

Bug Description

Using py-version 6.0.9 and Emacs 24 on Windows. Create a simple script ("hello.py") with contents such as:

print "Hello"

Then C-c C-c. The expected output should be something like:

>>> Hello

Instead, the actual buffer adds several periods (but only the first time):

... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... >>> ... ... ... ... ... ... ... ... ... >>> ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... >>> Hello

Possibly related is that you cannot send a buffer to Python without first creating a file on disk. For instance, using the scratch buffer (in python-mode) results in the following error on C-c C-c:

>>> Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "c:/Users/tbarik/AppData/Local/Temp/python-69840mQB.py", line 4, in <module>
    import os; os.chdir("C:\Users\tbarik")
WindowsError: [Error 123] The filename, directory name, or volume label syntax is incorrect: 'C:\\Users\tbarik'

Revision history for this message
Titus Barik (7-titus) wrote :
description: updated
Changed in python-mode:
assignee: nobody → Andreas Roehler (a-roehler)
milestone: none → 6.0.10
importance: Undecided → High
Changed in python-mode:
status: New → In Progress
Changed in python-mode:
status: In Progress → Fix Committed
Changed in python-mode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.