It is possible to show list/dictionary generator progress in python? -


i build big dictionary (2^20 elements) in python using dictionary generator expression (i'm using idle this). process long because of every element needs hard computing. possible known progress of operation?

i understand easy if don't use generator expressions, nevertheless question interesting think.

if use yield write generator function instead of using generator statement, put logging or other sort of feedback before every yield statement.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -