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
Post a Comment