On 07/10/2017 17:28, Steve D'Aprano wrote:
On Sun, 8 Oct 2017 01:15 am, bartc wrote:
You do remember this was about using programs /like/ sort as a model for
writing true interactive scrolling text apps?
I don't remember any such thing. I remember you *claiming* that, but if anyone
actually did make that claim, I haven't seen it.
bart:
> This doesn't make sense. For interactive use, you wouldn't bother
> testing for eof, as you'd be testing the eof status of the keyboard.
>
ChrisA:
> You mean the way heaps and heaps of Unix programs work, processing
> until EOF of stdin? Yeah, totally makes no sense, man, no sense at
> all.
bart:
> If you're referring to the ability to redirect stdin so that input can
> come from a file as well as from a live keyboard, then you're doing
> file handling; it's NOT interactive.
ChrisA:
> How would you write a sort program? How would you tell it that you're
> done entering data?
--
https://mail.python.org/mailman/listinfo/python-list