Skip to content

Conversation

deeenes
Copy link
Contributor

@deeenes deeenes commented Dec 23, 2016

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.

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`.
@casperdcl
Copy link
Member

@lrq3000 can you remember if/why we deliberately chose to not flush on refresh?

@lrq3000
Copy link
Member

lrq3000 commented Dec 26, 2016

@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).

@lrq3000 lrq3000 changed the title Update _tqdm.py Flush in refresh() and clean() Dec 27, 2016
Copy link
Member

@lrq3000 lrq3000 left a 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! 👍

Copy link
Member

@lrq3000 lrq3000 left a 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!

@deeenes
Copy link
Contributor Author

deeenes commented Dec 30, 2016

I am sorry, I got confused about the 2 PR. Now I reverted with another commit, so here is only what belongs here.

@lrq3000
Copy link
Member

lrq3000 commented Dec 31, 2016

No worries, thank you @deeenes for the contributions! 👍 :D

@lrq3000
Copy link
Member

lrq3000 commented Jan 1, 2017

Continued in #331, thank you @deeenes !

@lrq3000 lrq3000 closed this Jan 1, 2017
@casperdcl casperdcl mentioned this pull request Oct 5, 2017
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants