PEP 626 wrote:

Abstract
Python should guarantee that when tracing is turned on, "line" tracing events 
are generated for all lines of code executed and only for lines of code that are executed.

The sample code shows `return` events being executed, even when there is no `return` line -- doesn't this contradict the "only for lines of code executed"? Maybe the Tracing section should have an entry for multiple line events from the same line.

A side effect of ensuring correct line numbers, is that some bytecodes will 
need to be marked as artificial, and not have a meaningful line number.

Do you have an example of this?

--
~Ethan~
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/6NUA4OHJDERI77A2DUEF57NNBRIADHBC/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to