What would be From(x)? A dummy function just returning x?

def From(x): return x

Victor

2014/1/23 Guido van Rossum <gu...@python.org>:
> I propose to change the yield convention in Trollius to "yield
> From(x)". This is similar to "raise Return(x)". The reason is that
> this way it will be easier to convert Trollius code to Tulip code
> automatically. Without this, you have to look at each yield in the
> code and decide whether it's in a coroutine or in a regular generator,
> and only convert them when occurring in a coroutine.
>
> --
> --Guido van Rossum (python.org/~guido)

Reply via email to