What is the difference between yield
and return
explain with example?
and what actually happens when in the generator we yield
any value or request?
I'm not calling my generator from any other function or program.
My loop is:
for index in range(3):
yield Request(url,callback=parse)
This is making requests on the specific url and calling the callback function after the request. What this code is doing?
And what is the sequence followed by the code?