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

Delta Between Two Patch Sets: Objects/genobject.c

Issue 11682: PEP 380 reference implementation for 3.3
Left Patch Set: Created 7 years, 4 months ago
Right Patch Set: Created 7 years, 4 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
1 /* Generator object implementation */ 1 /* Generator object implementation */
2 2
3 #include "Python.h" 3 #include "Python.h"
4 #include "frameobject.h" 4 #include "frameobject.h"
5 #include "structmember.h" 5 #include "structmember.h"
6 #include "opcode.h" 6 #include "opcode.h"
7 7
8 static PyObject *gen_close(PyGenObject *gen, PyObject *args); 8 static PyObject *gen_close(PyGenObject *gen, PyObject *args);
9 static void gen_undelegate(PyGenObject *gen); 9 static void gen_undelegate(PyGenObject *gen);
10 10
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 return 0; /* no frame or empty blockstack == no finalization */ 607 return 0; /* no frame or empty blockstack == no finalization */
608 608
609 /* Any block type besides a loop requires cleanup. */ 609 /* Any block type besides a loop requires cleanup. */
610 for (i = 0; i < f->f_iblock; i++) 610 for (i = 0; i < f->f_iblock; i++)
611 if (f->f_blockstack[i].b_type != SETUP_LOOP) 611 if (f->f_blockstack[i].b_type != SETUP_LOOP)
612 return 1; 612 return 1;
613 613
614 /* No blocks except loops, it's safe to skip finalization. */ 614 /* No blocks except loops, it's safe to skip finalization. */
615 return 0; 615 return 0;
616 } 616 }
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+