Terry J. Reedy added the comment:

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

----------
title: Help() fails at raw_input readline (IDLE 2.7.3, Win7, pythonw) -> 
sys.stdin.readline 'unsupported' (IDLE 2.7.3, Win7, pythonw)

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16103>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to