Ned Batchelder added the comment:
Maybe I'm missing something during normal execution, but I'm only seeing this
effect now during this super-early encodings.py trick. I don't mind just
special-casing the Nones in this case.
--
___
Python tracker
Mark Shannon added the comment:
This is a bit of a tricky one.
The problem is that the line number for an instruction is used for two purposes.
1. To calculate the line number in frame.f_lineno for tracebacks and events
2. By dis to determine which lines are present and where they start.
If
New submission from Ned Batchelder :
Coverage.py has a trick to measure the early execution of stdlib modules. It
has an "encodings.py" file that sets a trace function, then gets out of the way
to let the real encodings.py execute. In 3.11.0a5, that early trace function
gets None values for