Repository navigation
Commit 53a906c
authored
Match settrace events, f_lineno jumps, and type dict lookup (#8758)
* Keep type dict keys and report current f_lasti
Snapshot the MRO during lookup so non-string keys can run __eq__,
skip subclass updates when set_bases is reentered, make module
__dict__ a readonly member, and forbid deleting exception __dict__.
f_lasti is the current opcode; line events skip NO_LOCATION units.
Assisted-by: Grok:grok-4.6
* Fire settrace call events from RESUME
PY_START/PY_RESUME become a 'call' event only at the first RESUME
of a frame activation, so lasti is the resume unit and f_trace_lines
is honored. Unskip passing TraceTestCase methods.
Assisted-by: Grok:grok-4.6
* Record what_event so f_lineno jumps match line traces
Store the current monitoring event while a trace callback
runs, reject jumps from call/return/exception, unwind tracer
errors in the traced frame, and fire call on PY_THROW.
Unskip JumpTestCase except the infinite-loop and five remaining xfails.
Assisted-by: Grok:grok-4.6
* Fire remaining settrace events from opcodes and jumps
Keep GET_ANEXT's iterator in mark_stacks, dispatch non-call
events through f_trace, fire PY_YIELD/PY_RETURN from the
opcodes, emit same-line LINE on backward jumps, and raise at
flattened call sites. Unskip the rest of test_sys_settrace.
Assisted-by: Grok:grok-4.6
* Fix trampoline raise panic and unxfail passing traces
Do not decode inline-cache units as opcodes when a flattened
call raises. Remove expectedFailure from test_trace and
test_regrtest coverage tests that now pass.
Assisted-by: Grok:grok-4.6
* Fire profile returns without a per-frame f_trace
setprofile must see PY_RETURN/PY_YIELD even when f_trace is unset.
Drop EXPECTED_FAILURE from the pdb doctest and unxfail
test_unfinished_generator.
Assisted-by: Grok:grok-4.61 parent 617c4be commit 53a906c
16 files changed
Lines changed: 477 additions & 308 deletions
File tree
- Lib/test
- test_doctest
- crates/vm/src
- builtins
- protocol
- stdlib
- sys
- vm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3432 | 3432 | | |
3433 | 3433 | | |
3434 | 3434 | | |
3435 | | - | |
3436 | 3435 | | |
3437 | 3436 | | |
3438 | 3437 | | |
| |||
5288 | 5287 | | |
5289 | 5288 | | |
5290 | 5289 | | |
5291 | | - | |
5292 | 5290 | | |
5293 | 5291 | | |
5294 | 5292 | | |
| |||
5924 | 5922 | | |
5925 | 5923 | | |
5926 | 5924 | | |
5927 | | - | |
5928 | 5925 | | |
5929 | 5926 | | |
5930 | 5927 | | |
| |||
5961 | 5958 | | |
5962 | 5959 | | |
5963 | 5960 | | |
5964 | | - | |
5965 | 5961 | | |
5966 | 5962 | | |
5967 | 5963 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2129 | 2129 | | |
2130 | 2130 | | |
2131 | 2131 | | |
2132 | | - | |
| 2132 | + | |
2133 | 2133 | | |
2134 | 2134 | | |
2135 | 2135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1226 | 1226 | | |
1227 | 1227 | | |
1228 | 1228 | | |
1229 | | - | |
1230 | 1229 | | |
1231 | 1230 | | |
1232 | 1231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
264 | 263 | | |
265 | 264 | | |
266 | 265 | | |
| |||
0 commit comments