[Edu-sig] More news from Europython

Kirby Urner urnerk at qwest.net
Thu Jul 7 06:48:37 CEST 2005


So one of the biggest developments was Guido's approval to enhancements
around 'yield', making a new gen.send(arg) method to supplement the
already-defined gen.next().  gen.send(arg) will feed arguments to a yield
*expression* i.e. a yield on the right side of an assignment operator, e.g.
x = yield.  gen.send(None) is equivalent to gen.next().

http://www.opensubscriber.com/message/patches@python.org/1624403.html
http://www.python.org/peps/pep-0342.html

I'm hoping we'll build some simpler examples than those provided in the PEP,
using simple math concepts or just skeletal "means nothing" code.

Kirby




More information about the Edu-sig mailing list