Thank you man! Appreciated!
Yeah, the context manager approach is not only visually good, but also useful! It allows you to call bar() just when you want, not necessarily in all iterations! So you can count at the same time the total and "broken" items, or "ok" items, so at the end you nicely get a receipt of "4800/5000", giving you more information than tqdm ever could.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thank you man! Appreciated!
Yeah, the context manager approach is not only visually good, but also useful! It allows you to call
bar()
just when you want, not necessarily in all iterations! So you can count at the same time the total and "broken" items, or "ok" items, so at the end you nicely get a receipt of "4800/5000", giving you more information than tqdm ever could.