Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
0ca0
on May 8, 2012
|
parent
|
context
|
favorite
| on:
Improving your (Python) code with modern idioms
The bit on the yield is a little thin. The other day I noticed that generators have a `send` and `throw` method which provide interesting ways for controlling flow.
http://www.python.org/dev/peps/pep-0342/
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
http://www.python.org/dev/peps/pep-0342/