Alexander Belopolsky <belopol...@users.sourceforge.net> added the comment:
I have found the cause of at least part of the issue. Apparently, module level statements for some of the modules such as pickle do not show up in trace because they are imported by trace itself. In other words, by the time traced script gets executed, pickle is already in sys.module and the code therein does not run. Maybe we should consider clearing sys.modules in Trace.run, but this can cause problems if not done carefully. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9317> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com