Author ncoghlan
Recipients benjamin.peterson, ncoghlan
Date 2008-05-04.04:34:24
SpamBayes Score 5.41087e-05
Marked as misclassified No
Message-id <>
The ability to execute packages was never intended, since doing so
breaks imports in a variety of subtle ways. It was actually a bug in 2.5
that it was permitted at all, so 2.6 not only disabled it again, but
also added a test to make sure it stays disabled (2.4 correctly rejected
it with an ImportError, just as 2.6 does).

Here's the relevant svn log entry:

r56509 | nick.coghlan | 2007-07-23 23:41:45 +1000 (Mon, 23 Jul 2007) | 5

Correctly cleanup sys.modules after executing runpy relative import
Restore Python 2.4 ImportError when attempting to execute a package
(as imports cannot be guaranteed to work properly if you try it)
Date User Action Args
2008-05-04 04:34:28ncoghlansetspambayes_score: 5.41087e-05 -> 5.41087e-05
recipients: + ncoghlan, benjamin.peterson
2008-05-04 04:34:27ncoghlansetspambayes_score: 5.41087e-05 -> 5.41087e-05
messageid: <>
2008-05-04 04:34:26ncoghlanlinkissue2751 messages
2008-05-04 04:34:24ncoghlancreate