Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 75292:b299c4f31ff2
Close issue #6210: Implement PEP 409
| author | Nick Coghlan <ncoghlan@gmail.com> |
|---|---|
| date | Sun, 26 Feb 2012 17:49:52 +1000 |
| parents | 88aede44ded1 |
| children | ff7587546a1d |
comparison
equal
deleted
inserted
replaced
| 75291:db968ac2b82c | 75292:b299c4f31ff2 |
|---|---|
| 1696 if (PySet_Add(seen, value) == -1) | 1696 if (PySet_Add(seen, value) == -1) |
| 1697 PyErr_Clear(); | 1697 PyErr_Clear(); |
| 1698 else if (PyExceptionInstance_Check(value)) { | 1698 else if (PyExceptionInstance_Check(value)) { |
| 1699 cause = PyException_GetCause(value); | 1699 cause = PyException_GetCause(value); |
| 1700 context = PyException_GetContext(value); | 1700 context = PyException_GetContext(value); |
| 1701 if (cause) { | 1701 if (cause && cause == Py_None) { |
| 1702 /* print neither cause nor context */ | |
| 1703 ; | |
| 1704 } | |
| 1705 else if (cause) { | |
| 1702 res = PySet_Contains(seen, cause); | 1706 res = PySet_Contains(seen, cause); |
| 1703 if (res == -1) | 1707 if (res == -1) |
| 1704 PyErr_Clear(); | 1708 PyErr_Clear(); |
| 1705 if (res == 0) { | 1709 if (res == 0) { |
| 1706 print_exception_recursive( | 1710 print_exception_recursive( |
