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

Delta Between Two Patch Sets: Objects/exceptions.c

Issue 6210: Exception Chaining missing method for suppressing context
Left Patch Set: Created 1 year, 3 months ago
Right Patch Set: Created 1 year, 3 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
« no previous file with change/comment | « Misc/ACKS ('k') | Python/ceval.c » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2463 matching lines...) Expand 10 before | Expand all | Expand 10 after
2474 args_tuple = PyTuple_Pack(1, exc_message); 2474 args_tuple = PyTuple_Pack(1, exc_message);
2475 if (!args_tuple) 2475 if (!args_tuple)
2476 Py_FatalError("cannot allocate tuple for RuntimeError " 2476 Py_FatalError("cannot allocate tuple for RuntimeError "
2477 "pre-allocation"); 2477 "pre-allocation");
2478 Py_DECREF(exc_message); 2478 Py_DECREF(exc_message);
2479 if (BaseException_init(err_inst, args_tuple, NULL)) 2479 if (BaseException_init(err_inst, args_tuple, NULL))
2480 Py_FatalError("init of pre-allocated RuntimeError failed"); 2480 Py_FatalError("init of pre-allocated RuntimeError failed");
2481 Py_DECREF(args_tuple); 2481 Py_DECREF(args_tuple);
2482 } 2482 }
2483 } 2483 }
2484 2484 Py_DECREF(bltinmod);
2485 } 2485 }
2486 2486
2487 void 2487 void
2488 _PyExc_Fini(void) 2488 _PyExc_Fini(void)
2489 { 2489 {
2490 Py_CLEAR(PyExc_RecursionErrorInst); 2490 Py_CLEAR(PyExc_RecursionErrorInst);
2491 free_preallocated_memerrors(); 2491 free_preallocated_memerrors();
2492 Py_CLEAR(errnomap); 2492 Py_CLEAR(errnomap);
2493 } 2493 }
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld cbc36f91f3f7