STINNER Victor <victor.stin...@haypocalc.com> added the comment: > set the trace function later. Eg. replace exec(cmd, ...) > by code=compile(cmd, ...) + exec(code) and set the trace function > after the call to compile.
Implemented in the attached patch, bdb.patch: trace the execution of the code, not the compilation of the code. > I don't know if both codes are equivalent. I still don't know :-p ---------- keywords: +patch Added file: http://bugs.python.org/file20284/bdb.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10492> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com