if STREAM.isatty():
Hongyi Zhao
hongyi.zhao at gmail.com
Fri Aug 30 04:33:31 EDT 2019
On Thu, 29 Aug 2019 16:42:44 +0100, Rhodri James wrote:
> I don't understand what's to not to understand.
>
> if condition:
> do_something_because_condition_is_true()
> else:
> do_something_because_condition_is_false()
>
> is a perfectly normal construction. If you mean something else, please
> be explicit.
I've read some more thing on the python 3 's print, seems for the isatty
() discussed here is completely can done with using it by something like:
print(p, end='\r', flush=True)
Regards
More information about the Python-list
mailing list