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 tati_alchueyr
Recipients belopolsky, ezio.melotti, flox, georg.brandl, tati_alchueyr
Date 2012-07-20.14:00:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Yesterday I've studied this problem with flavio.ribeiro, and we've started "solving" it. The result of our progress is available at:

The problem of our approach is that any code outside the condition "if __name__ == '__main__'" will be run twice, as we used imp.load_source to obtain trace's analyzed code and redefine sys.modules['__main__'].

In order to provide a better solution, we were considering using lazy module import, e.g:

Any thoughts on this?
Date User Action Args
2012-07-20 14:00:33tati_alchueyrsetrecipients: + tati_alchueyr, georg.brandl, belopolsky, ezio.melotti, flox
2012-07-20 14:00:33tati_alchueyrsetmessageid: <>
2012-07-20 14:00:28tati_alchueyrlinkissue9914 messages
2012-07-20 14:00:27tati_alchueyrcreate