[issue9866] Inconsistencies in tracing list comprehensions

Alexander Belopolsky report at bugs.python.org
Wed Sep 15 23:46:33 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

On Wed, Sep 15, 2010 at 5:33 PM, Antoine Pitrou <report at bugs.python.org> wrote:
..
> As I said in #9315, I think this kind of thing (bytecode traces) is an implementation detail; the changes
> in results shouldn't be regarded as breaking compatibility.

In r74132, an attempt was made to rationalize and document line
tracing.  While it is an implementation detail, I don't think people
expect it to be platform dependent in CPython implementation.  "With
computed gotos" was supposed to be a pure optimization.  I find it
very surprising that it changes tracing behavior.

> The only problem I could see would be if a whole line of code would be "forgotten".

This is exactly what my example demonstrates.

----------

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


More information about the Python-bugs-list mailing list