Hacker News new | past | comments | ask | show | jobs | submit login

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: