globals() rather than self.locals?
WilCrofter opened this issue · 0 comments
WilCrofter commented
print(globals()) rather than print(self.locals), since the user works on globals?
Actually, I don't think the callback is actually firing when I enter, e.g, a=5. Change body to print("hi")
or print(globals())
to see. We probably have to override some console method, or register a listener or something.
I failed to notice that hookcount, which doesn't print, was the callback. (Pity the poor lawn maintenance crew.) Works perfectly. Elegant. Closing issue.