Commit bde9635
committed
Fix traceback in threads when SetTrace used.
Testing
===
The following script returns normamly, where previously it encountered: `ValueError: call stack is not deep enough`.
```
import sys
import threading
import typing
def tracer(frame, event, arg):
return tracer
def do_check():
isinstance(None, typing.Iterable)
sys.settrace(tracer)
t = threading.Thread(target=do_check)
t.start()
t.join()
```1 parent 3ef134b commit bde9635
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3848 | 3848 | | |
3849 | 3849 | | |
3850 | 3850 | | |
3851 | | - | |
3852 | | - | |
3853 | | - | |
| 3851 | + | |
| 3852 | + | |
| 3853 | + | |
3854 | 3854 | | |
3855 | 3855 | | |
3856 | 3856 | | |
| |||
0 commit comments