On 31/08/16 05:12, monik...@netzero.net wrote:

So generator function returns generator object according to Aaron Maxwell.

I don't believe that's correct.

A generator function can return any kind of object including
basic types like numbers, bool etc.In addition, a generator
function yields values which can also be of any type.

It might be valid to say that a generator function *is* a generator
object, but I'll leave that distinction to the language lawyers
to debate.

Alan G

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to