[Python-ideas] Possible PEP 380 tweak (original) (raw)
Jacob Holm jh at improva.dk
Sat Oct 30 01:57:59 CEST 2010
- Previous message: [Python-ideas] Possible PEP 380 tweak
- Next message: [Python-ideas] Possible PEP 380 tweak
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2010-10-30 01:50, ghazel at gmail.com wrote:
On Fri, Oct 29, 2010 at 4:46 PM, Jacob Holm <jh at improva.dk> wrote:
Which is exactly why I'm suggesting dropping "return value" from PEP 380 and then doing it right in PEP 3152, which has a much better rationale for the "return value" feature anyway. Why not split "return value" for generators in to its own PEP? There is currently a use case for it in frameworks which use generators for coroutines, without any dependency on PEP 380 or PEP 3152.
You could do that, but I think 3152 would need to depend on the new PEP then. It would be quite strange to define a new class of "functions" and not have them able to return a value.
- Jacob
- Previous message: [Python-ideas] Possible PEP 380 tweak
- Next message: [Python-ideas] Possible PEP 380 tweak
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]