Re: sys.settrace closure interaction bug

2007-03-12 Thread Jeremy Hylton
Can you file a bug report for this? I'm guessing that the trace code has some bad interaction with LOAD_LOCALS, such that a free variable passed through the class gets treated as local instead. I can reproduce this problem in Python 2.4, so it's a long-standing bug. Also, as a matter of terminol

sys.settrace closure interaction bug

2006-10-03 Thread Scott Marks
The code below exhibits different behavior depending on whether it invokes sys.settrace ('-t' option) or not.  This means that (in a more complicated case) debugging the code (which uses sys.settrace) makes it fail.  Any ideas? """ Demonstrace that tracing messes up curried class definitions """ #