[Edu-sig] continuing with coroutines

2016-01-04 Thread kirby urner
This code is practical mainly in the trivial sense that it runs to completion. # -*- coding: utf-8 -*- """ Created on Sun Jan 3 13:51:20 2016 @author: kurner """ import itertools def assemble(): drv = yield None drv.result = 1 drv = yield drv drv.result += 1 drv.name = "Alvi

Re: [Edu-sig] pep380: yield from

2016-01-04 Thread kirby urner
Erratum: 'Luciano packs his 'For Further Reading' with links directly TO Google groups' ETC. FoxPro refugees (Microsoft has stopped supporting that language) will remember READ EVENTS as a last call to get a GUI going, akin to Tk's mainloop(). Quoting from Fluent Python: Dino Viehland showed how

[Edu-sig] pep380: yield from

2016-01-04 Thread kirby urner
I working through Luciano's Fluent Python, which I really appreciate reading in Safari On-Line as so many of the links are live and relevant. Luciano packs his 'For Further Reading' with links directly in Google groups, where we can see Guido studying Twisted so to better communicate his alternativ