[Python-ideas] Coroutines and PEP 380
solipsis at pitrou.net
Wed Jan 25 15:45:24 CET 2012
On Wed, 25 Jan 2012 18:45:16 +1000
Nick Coghlan <ncoghlan at gmail.com> wrote:
> On Wed, Jan 25, 2012 at 5:35 PM, Matt Joiner <anacrolix at gmail.com> wrote:
> > If someone can explain what's stopping real coroutines being into
> > Python (3.3), that would be great.
> The general issues with that kind of idea:
> - the author hasn't offered the code for inclusion and relicensing
> under the PSF license (thus we legally aren't allowed to do it)
> - complexity
> - maintainability
> - platform support
> In the specific case of coroutines, you have the additional hurdle of
> convincing people whether or not they're a good idea at all.
Do you mean preemptive coroutines as opposed to ("yield from"-based)
Because I don't see the point of PEP 380 if not for coroutines
(tree-walking examples are academic).
(I'd also like to point out the following paper which makes an useful
distinction between "task management" and "stack management":
More information about the Python-ideas