if STREAM.isatty():

Chris Angelico rosuav at gmail.com
Fri Aug 30 12:50:45 EDT 2019


On Sat, Aug 31, 2019 at 2:26 AM Michael Torrie <torriem at gmail.com> wrote:
>
> On Fri, Aug 30, 2019, 05:02 Hongyi Zhao <hongyi.zhao at gmail.com wrote:
>
> > On Fri, 30 Aug 2019 17:53:02 +1000, Chris Angelico wrote:
> > > (Also, why the sleep? Seems unnecessary.)
> >
> > Because without using sleep, the stuff on screen will display very
> > shortly and then disappear.  Is this not your testing result?
>
>
> No it is not. What kind of terminal are you using?

Probably a Windows computer and just double-clicking on the program to
make it do stuff.

Recommendation: If that's the case, get an actual terminal. Learn to use it.

ChrisA



More information about the Python-list mailing list