Python generators are very useful. They have advantages over functions that return lists. However, you could len(list_returning_function()). Is there a way to len(generator_function())? UPDATE: Of course len(list(generator_function())) would work..... I'm trying to use a generator I've created inside a new generator I'm creating. As part of the calculation in the new generator it needs to know the