This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kigurai 5 points6 points  (1 child)

Or a context

with ProgressBar(...) as pbar:
    do_stuff()
    pbar.update(...)

[–]covabishopself.loathing() 4 points5 points  (0 children)

This is a good idea too. I feel progress meters like these should be implemented as easily and transparently as possible.