Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
As far as I knowframe.f_lineno should never beNone, yet, in the case below it is:
import sysdef tracefunc(frame, event, arg): if frame.f_lineno is None: raise AssertionError('frame.f_lineno is None!', frame) return tracefuncsys.settrace(tracefunc)# Apparently anything we import would give a frame.f_lineno = None during tracing.import threadingYour environment
- CPython versions tested on:
3.11.0b3 (main, Jun 1 2022, 13:29:14) [MSC v.1932 64 bit (AMD64)] - Operating system and architecture:
Windows
Metadata
Metadata
Assignees
Projects
Status
Done