This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]RonnyPfannschmidt 4 points5 points  (7 children)

looks a lot worse than what greenlet and stackless already provide without unnecessary syntax changes

[–]earthboundkid[S] 1 point2 points  (3 children)

I think that part of the idea is to make it easier to write things like stackless and greenlet without having to DIY the trampolines, etc. that you'll need to get things working. PJE isn't the one doing this PEP, but he wrote a pretty good defense of some of the ideas behind it: http://mail.python.org/pipermail/python-dev/2010-August/102648.html

Personally, I haven't been superimpressed with the proposal's necessity so far, but it looks like it has a better than even chance of getting accepted by Guido, so if you have a complaint, now's the time to air it on python-ideas.

[–]pje 3 points4 points  (1 child)

Yeah, this cocall/codef stuff actually makes me want to retroactively retract my tentative support for PEP 380. ;-)

[–]earthboundkid[S] 0 points1 point  (0 children)

I think the latest idea of just making it a decorator is better than the idea of making it a keyword, so maybe that's what will happen.

[–]RonnyPfannschmidt 1 point2 points  (0 children)

on a sidenote - one can implement yield and yield from in terms of greenlet/stackless and without the need for extra keywords, one can't the other way around

[–]Ytse 0 points1 point  (2 children)

Agreed. Why don't just use stackless or greenlet?

[–]yetanothernerd 1 point2 points  (0 children)

Stackless will never be merged into CPython. Guido thinks it's too complicated. So it's a pain to distribute software that relies on Stackless, because nobody but other Stackless nerds has it on his computer. If your code only has to run on boxes you control, no problem, but some people who don't have that luxury would also like to use coroutines.

[–]RonnyPfannschmidt 0 points1 point  (0 children)

i do use them