-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Flush in refresh() and clean() #327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
for me, without `self.fp.flush()`, refresh always fails in Python 3.5 (but not in 2.7), even with the most mimal test code. added `flush` at the end of `refresh`.
@lrq3000 can you remember if/why we deliberately chose to not flush on refresh? |
@casperdcl No reason I can remember of, I think it was a confusion because usually we use StatusPrinter to write and it automatically takes care of flushing. clean() also needs flushing, and maybe we should use StatusPrinter instead of directly writing (direct writing is usually done to have more flexibility, but here I can't see nor remember why it would not work OK). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, thanks a lot! 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahhh no it's the wrong commits on the wrong PR!
I am sorry, I got confused about the 2 PR. Now I reverted with another commit, so here is only what belongs here. |
No worries, thank you @deeenes for the contributions! 👍 :D |
for me, without
self.fp.flush()
, refresh always fails in Python 3.5 (but not in 2.7), even with the most mimal test code. addedflush
at the end ofrefresh
.