How to recognize a generator function?

Andrew Bennetts andrew-pythonlist at puzzling.org
Wed Jun 18 09:51:53 EDT 2003


On Wed, Jun 18, 2003 at 03:21:35AM -0700, Oscar Rambla wrote:
> 
> Hi, 
> 
> I'm not been able to find a solution to the following:
> 
> How to recognize if a function is a generator function before calling it?

How do you know what *any* function returns before you call it?

-Andrew.






More information about the Python-list mailing list