◐ Shell
clean mode source ↗

Message 173022 - Python tracker

Yes, the first part of my post was about how it worked in regular interactive window: prints text, then prompt, then blinking underline cursor.

Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32 -- Win7 Professional, with all MS patches.

Are you running the apr 10 release or something compiled later, with the readline stub replaced?

Problem manifests in raw_input(): get same behavior of print prompt then crash when should display input cursor.

>>> raw_input('xyz')  # IDLE still
xyz
Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    raw_input('xyz')
UnsupportedOperation: readline

Problem really is sys.stdin.readline(), which is the dummy stub I quoted in first message.

>>> sys.stdin.readline()

Traceback (most recent call last):
  File "<pyshell#11>", line 1, in <module>
    sys.stdin.readline()
UnsupportedOperation: readline