Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 37468:04afb3650847 legacy-trunk
Generate line number table entries for except handlers.
Re-enable all the tests in test_trace.py except one. Still not sure that these tests test what they used to test, but they pass. One failing test seems to be caused by undocumented line number table behavior in Python 2.4.
| author | Jeremy Hylton <jeremy@alum.mit.edu> |
|---|---|
| date | Tue, 04 Apr 2006 14:26:39 +0000 |
| parents | cea54c9d921d |
| children | 231e42d0362e |
line wrap: on
line diff
--- a/Python/compile.c Tue Apr 04 13:32:08 2006 +0000 +++ b/Python/compile.c Tue Apr 04 14:26:39 2006 +0000 @@ -2398,6 +2398,8 @@ s->v.TryExcept.handlers, i); if (!handler->type && i < n-1) return compiler_error(c, "default 'except:' must be last"); + c->u->u_lineno_set = false; + c->u->u_lineno = handler->lineno; except = compiler_new_block(c); if (except == NULL) return 0;
