Skip to content

Instantly share code, notes, and snippets.

@davidbirdsong
Created June 22, 2013 01:00
Show Gist options
  • Select an option

  • Save davidbirdsong/5835375 to your computer and use it in GitHub Desktop.

Select an option

Save davidbirdsong/5835375 to your computer and use it in GitHub Desktop.
trying to understand the syntax of x = yield f()
>>> def f(): return 'result of f'
...
>>> def y():
... x = yield f()
... print type(x)
...
>>> list(y())
<type 'NoneType'>
['result of f']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment