-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
p4-enhancement-future 🧨On the back burnerOn the back burnerquestion/docs ‽Documentation clarification candidateDocumentation clarification candidate
Description
Currently, I have a trick to handle input of unknown size: I set the .total
to the next power of 2 above the soon-to-be-current value just before calling .update
.
This guarantees that the fraction will repeatedly go from 50% up to 99%, which is actually a pretty decent UX. However, the tqdm-printed metadata includes my "total" as if it's fact, not merely a guess.
A better example is shown in visionmedia/node-progress#121 - though perhaps we should increase the size of the chunk logarithmically between some bounds (possibly altered by __length_hint__
)?
Delgan, twosigmajab, metasim, max-sixty, Aetf and 2 more
Metadata
Metadata
Assignees
Labels
p4-enhancement-future 🧨On the back burnerOn the back burnerquestion/docs ‽Documentation clarification candidateDocumentation clarification candidate