[issue17971] Weird interaction between Komodo Python debugger C module & Python 3

Eric Promislow report at bugs.python.org
Wed May 15 22:32:31 CEST 2013


Eric Promislow added the comment:

I found a workaround in our debugger code, so you can lower the priority on this, or even mark it "Wontfix", although I still
think the frame stack is getting messed up.

One thing about our debugger, it essentially runs all the Python code in a big exec statement, and this particular code contains its own exec stmt.  The stack looks wrong after we finish the inner exec statement.
So if you're looking for a repro, that might be the way to go.  However
I can break at line 10 in the following code with no problem using pdb (Py 3):

     1  #!/usr/bin/env python3
     2
     3  def inner_f(a, b):
     4      ns2 = {"c": 7, "a":a, "b":b, "tot":None }
     5      exec("tot = a + b + 1 + 100 * c", ns2)
     6      return ns2['tot']
     7
     8  ns1 = {"c": 5, "inner_f": inner_f, "res":None }
     9  exec("res = inner_f(3, 4) + 10 * c", ns1)
    10  print("After all that, res: %d" % (ns1['res'],))
    11  print("Stop here")

----------

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


More information about the Python-bugs-list mailing list