4 ms·
The answer on SO says explicitly (in bold, BTW): > To master yield, you must understand that when you call the function, the code you have written in the funct
by andreif 14y ago
The answer on SO says explicitly (in bold, BTW):
> To master yield, you must understand that when you call the function, the code you have written in the function body does not run. The function only returns the generator object, this is bit tricky :-)