Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3456)

Issue 13897: Move fields relevant to coroutine/generators out of frame into generator/threadstate

Can't Edit
Can't Publish+Mail
Start Review
Created:
3 months, 4 weeks ago by mark
Modified:
1 month, 2 weeks ago
Reviewers:
jimjjewett, benjamin
CC:
jcea, amaury.forgeotdarc, Nick Coghlan, AntoinePitrou, scoder, ron_adam, Benjamin Peterson, Mark.Shannon, Jim.Jewett
Visibility:
Public.

Patch Set 1 #

Patch Set 2 #

Total comments: 4

Patch Set 3 #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
Include/frameobject.h View 1 chunk +0 lines, -9 lines 0 comments Download
Include/genobject.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
Lib/test/test_sys.py View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
Objects/frameobject.c View 1 2 5 chunks +1 line, -12 lines 0 comments Download
Objects/genobject.c View 1 2 6 chunks +102 lines, -6 lines 0 comments Download
Python/ceval.c View 1 2 4 chunks +0 lines, -88 lines 0 comments Download

Messages

Total messages: 2
Jim.Jewett
http://bugs.python.org/review/13897/diff/4186/14521 File Python/sysmodule.c (right): http://bugs.python.org/review/13897/diff/4186/14521#newcode211 Python/sysmodule.c:211: while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) && ...
2 months, 2 weeks ago #1
Benjamin Peterson
2 months, 2 weeks ago #2
Mostly requests for comments.

http://bugs.python.org/review/13897/diff/4186/14514
File Include/pystate.h (right):

http://bugs.python.org/review/13897/diff/4186/14514#newcode70
Include/pystate.h:70: /* In a generator, we need to be able to swap between the
exception
This comment isn't completely correct now that you're using the struct in the
thread state, also.

http://bugs.python.org/review/13897/diff/4186/14514#newcode109
Include/pystate.h:109: PyExcState exc_state;
It would be nice to have a comment explaining what difference between exc_state
and exc_info is.

http://bugs.python.org/review/13897/diff/4186/14520
File Python/pystate.c (right):

http://bugs.python.org/review/13897/diff/4186/14520#newcode300
Python/pystate.c:300: fprintf(stderr,
Should this perhaps be a fatal error?
Sign in to reply to this message.

RSS Feeds Recent Issues | This issue
This is Rietveld