This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: IDE stdin doesn't have readlines
Type: Stage:
Components: macOS Versions:
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: jvr Nosy List: bob.ippolito, jackjansen, jvr
Priority: normal Keywords:

Created on 2003-03-26 22:30 by jackjansen, last changed 2022-04-10 16:07 by admin. This issue is now closed.

Messages (3)
msg15276 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2003-03-26 22:30
This was submitted by email by macrulezatsofthomedotnet. It looks reasonable, but please have a look too.

SimpleStdin doesn't provide a readlines method
	some scripts call sys.stdin.readlines(). the default stdin does not support this behaviour. I added it by copying and pasting the readlines method from StringIO, and adapting the indentation to fit. works beautifully: it asks the user for a line of input repeatedly until the user clicks 'Cancel'. not perfect UI, but it's something.
msg15277 - (view) Author: Just van Rossum (jvr) * (Python triager) Date: 2003-03-27 09:18
Logged In: YES 
user_id=92689

Hm, I find the stdin.readline() emulation already a big pain, and I'm hesitant to add an even uglier kludge to support readlines(). The IDE is simply not well suited for stdin-based scripts, they are _much_ better run from the command line. But: an actual patch might still make it in...
msg15278 - (view) Author: Bob Ippolito (bob.ippolito) * (Python committer) Date: 2006-07-15 17:10
Logged In: YES 
user_id=139309

IDE is deprecated in favor of IDLE.
History
Date User Action Args
2022-04-10 16:07:54adminsetgithub: 38221
2003-03-26 22:30:08jackjansencreate