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

Delta Between Two Patch Sets: Objects/exceptions.c

Issue 11682: PEP 380 reference implementation for 3.3
Left Patch Set: Created 7 years, 8 months ago
Right Patch Set: Created 7 years, 8 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 /* 1 /*
2 * New exceptions.c written in Iceland by Richard Jones and Georg Brandl. 2 * New exceptions.c written in Iceland by Richard Jones and Georg Brandl.
3 * 3 *
4 * Thanks go to Tim Peters and Michael Hudson for debugging. 4 * Thanks go to Tim Peters and Michael Hudson for debugging.
5 */ 5 */
6 6
7 #define PY_SSIZE_T_CLEAN 7 #define PY_SSIZE_T_CLEAN
8 #include <Python.h> 8 #include <Python.h>
9 #include "structmember.h" 9 #include "structmember.h"
10 #include "osdefs.h" 10 #include "osdefs.h"
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 */ 482 */
483 SimpleExtendsException(PyExc_Exception, TypeError, 483 SimpleExtendsException(PyExc_Exception, TypeError,
484 "Inappropriate argument type."); 484 "Inappropriate argument type.");
485 485
486 486
487 /* 487 /*
488 * StopIteration extends Exception 488 * StopIteration extends Exception
489 */ 489 */
490 490
491 //SimpleExtendsException(PyExc_Exception, StopIteration, 491 //SimpleExtendsException(PyExc_Exception, StopIteration,
492 // "Signal the end from iterator.__next__()."); 492 // "Signal the end from iterator.__next__().");
Z. Jędrzejewski-Szmek 2012/01/12 19:06:52 Remove this comment?
493 493
494 static PyMemberDef StopIteration_members[] = { 494 static PyMemberDef StopIteration_members[] = {
495 {"value", T_OBJECT, offsetof(PyStopIterationObject, value), 0, 495 {"value", T_OBJECT, offsetof(PyStopIterationObject, value), 0,
496 PyDoc_STR("generator return value")}, 496 PyDoc_STR("generator return value")},
497 {NULL} /* Sentinel */ 497 {NULL} /* Sentinel */
498 }; 498 };
499 499
500 static int 500 static int
501 StopIteration_init(PyStopIterationObject *self, PyObject *args, PyObject *kwds) 501 StopIteration_init(PyStopIterationObject *self, PyObject *args, PyObject *kwds)
502 { 502 {
(...skipping 1963 matching lines...) Expand 10 before | Expand all | Expand 10 after
2466 Py_DECREF(bltinmod); 2466 Py_DECREF(bltinmod);
2467 } 2467 }
2468 2468
2469 void 2469 void
2470 _PyExc_Fini(void) 2470 _PyExc_Fini(void)
2471 { 2471 {
2472 Py_CLEAR(PyExc_RecursionErrorInst); 2472 Py_CLEAR(PyExc_RecursionErrorInst);
2473 free_preallocated_memerrors(); 2473 free_preallocated_memerrors();
2474 Py_CLEAR(errnomap); 2474 Py_CLEAR(errnomap);
2475 } 2475 }
LEFTRIGHT

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