This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky, eli.bendersky, terry.reedy
Date 2010-10-15.18:32:16
SpamBayes Score 8.568381e-08
Marked as misclassified No
Message-id <1287167538.68.0.75102110303.issue9317@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-10-15 18:32:18belopolskysetrecipients: + belopolsky, terry.reedy, eli.bendersky
2010-10-15 18:32:18belopolskysetmessageid: <1287167538.68.0.75102110303.issue9317@psf.upfronthosting.co.za>
2010-10-15 18:32:17belopolskylinkissue9317 messages
2010-10-15 18:32:16belopolskycreate