Message319409
| Author | belopolsky |
|---|---|
| Recipients | belopolsky |
| Date | 2018-06-12.22:24:35 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1528842275.49.0.947875510639.issue33849@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Consider the following code:
import sys
def trace(frame, event, arg):
pass
def f():
f()
sys.settrace(trace)
print(sys.gettrace())
try:
f()
except RuntimeError:
pass
print(sys.gettrace())
When I run it, I get
<function trace at 0x108865158>
None
Apparently, the infinite recursion somehow resets the trace function. This interferes with the coverage tools. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2018-06-12 22:24:35 | belopolsky | set | recipients: + belopolsky |
| 2018-06-12 22:24:35 | belopolsky | set | messageid: <1528842275.49.0.947875510639.issue33849@psf.upfronthosting.co.za> |
| 2018-06-12 22:24:35 | belopolsky | link | issue33849 messages |
| 2018-06-12 22:24:35 | belopolsky | create | |