Message3272

Author pjenvey
Recipients daishiharada, pjenvey
Date 2008-06-10.23:29:30
SpamBayes Score 0.007917835
Marked as misclassified No
Message-id <1213140571.47.0.182722751438.issue695383@psf.upfronthosting.co.za>
In-reply-to
Content
it looks like we end up exiting because we actually write our prompt 
'>>>' to sys.stdout. So writing to the closed stdout raises a 
ValueError, breaking us out of the interactive prompt loop (causing the 
exit)

We should actually be writing the prompt to stderr -- that will totally 
avoid the exception.

The problem with that is when readline is enabled, the only way we can 
write the prompt to stderr instead of stdout is by doing it ourselves 
(right now Readline.readline() writes the prompt for us).

This seems to break readline in some situations: for example, when 
recalling a previous line in the history (with the up arrow), readline 
for some reason doesn't realize there's a prompt at the beginning of the 
line and allows you to muck with those characters
History
Date User Action Args
2008-06-10 23:29:31pjenveysetspambayes_score: 0.00791784 -> 0.007917835
messageid: <1213140571.47.0.182722751438.issue695383@psf.upfronthosting.co.za>
2008-06-10 23:29:31pjenveysetspambayes_score: 0.00791784 -> 0.00791784
recipients: + pjenvey, daishiharada
2008-06-10 23:29:31pjenveylinkissue695383 messages
2008-06-10 23:29:30pjenveycreate