This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:35belopolskysetrecipients: + belopolsky
2018-06-12 22:24:35belopolskysetmessageid: <1528842275.49.0.947875510639.issue33849@psf.upfronthosting.co.za>
2018-06-12 22:24:35belopolskylinkissue33849 messages
2018-06-12 22:24:35belopolskycreate