6 ms·
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 f
by 0ca0 14y ago
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/ http://www.python.org/dev/peps/pep-0342/