Could tqdm read my iterator __len__() after __iter__() is called and not before ? #853
Open
5 of 8 tasks
Labels
question/docs ‽
Documentation clarification candidate
read the known issues
environment, where applicable:
4.36.1 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 03:37:03) [MSC v.1900 64 bit (AMD64)] win32
Feature request
I created the iterator here below.
My iterator doesn't know its length at init() but only after execution of iter().
tqdm calls len() before iter() is called. So tqdm gets zero as a total.
Is it possible that tqdm could read len() after iter() ?
Output:
called init
called len
0it [00:00, ?it/s]called iter
20it [00:04, 4.99it/s]
The text was updated successfully, but these errors were encountered: