[Python-Dev] Missing operator.call (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Fri Feb 6 13:03:16 CET 2009
- Previous message: [Python-Dev] Missing operator.call
- Next message: [Python-Dev] Missing operator.call
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Greg Ewing <greg.ewing canterbury.ac.nz> writes:
I've no problem with using 'yield' when actually giving up control. But the code making the call doesn't think of itself as yielding. The called code may want to yield, but the caller doesn't care about that. It just wants to make the callee do its thing, whatever it is.
Sorry for saying that, but the more I read your explanations, the less I understand them. In any case, using such a generic word as "call" for generator-specific semantics looks highly confusing to me.
- Previous message: [Python-Dev] Missing operator.call
- Next message: [Python-Dev] Missing operator.call
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]