[issue13607] Move generator specific sections out of ceval.

Mark Shannon report at bugs.python.org
Mon Feb 13 15:42:16 CET 2012


Mark Shannon <mark at hotpy.org> added the comment:

Why do the codes used internally by ceval have to be the same as those made public?

Have you considered returning the exit code directly, rather than
adding another field to frameobject?

yieldfrom can be handled in a similar way to yield by returning the iterator (instead of the yielded value).

See attached file for example code.

----------
nosy: +Mark.Shannon
Added file: http://bugs.python.org/file24509/exit_code_example.c

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13607>
_______________________________________


More information about the Python-bugs-list mailing list