[New-bugs-announce] [issue13548] Invalid 'line' tracer event on pass within else clause

Stephan R.A. Deibel report at bugs.python.org
Wed Dec 7 17:28:10 CET 2011


New submission from Stephan R.A. Deibel <sdeibel at wingware.com>:

The tracer set with sys.settrace() is called incorrectly with a 'line' event on a 'pass' that is at the end of an 'else' clause on the final line of a function even if the else block is not executed by the interpreter.  Whew, talk about an end case!  The attached file illustrates this.

----------
components: Interpreter Core
files: badlineevent.py
messages: 148974
nosy: sdeibel
priority: normal
severity: normal
status: open
title: Invalid 'line' tracer event on pass within else clause
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file23865/badlineevent.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13548>
_______________________________________


More information about the New-bugs-announce mailing list