Author brett.cannon
Recipients Olivier.Grisel, brett.cannon, eric.snow, ncoghlan, pitrou, python-dev, sbt
Date 2013-12-13.17:29:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Multiple questions from Oliver to answer.

> Why has this issue been closed?

Because the decided issue of this bug -- raising AttributeError over ImportError -- was fixed.

> Won't the spawn and forkserver mode work in Python 3.4 for Python program started by a Python script (which is probably the majority of programs written in Python under unix)?

The semantics are not going to change in python 3.4 and will just stay as they were in Python 3.3.

> Is there any reason not to use the `imp.load_source` code I put in my patch as a temporary workaround if the cleaner runpy.run_path solution is too tricky to implement for the Python 3.4 release time frame?

There are two reasons. One is that the imp module is deprecated in Python 3.4 ( Two is that temporarily inserting for a single release a solution that will simply be ripped out in the following release is just asking for trouble. Someone will use the temporary fix in some way in production code and then be shocked when the better solution doesn't work in exactly the same way. It's best to simply wait until 3.5 has the proper solution available.

I know it's frustrating to either name your scripts with a .py until Python 3.5 comes out or just wait until 3.5, but we can't risk a hacky solution for a single release as users will be living with the hack for several years.
Date User Action Args
2013-12-13 17:29:41brett.cannonsetrecipients: + brett.cannon, ncoghlan, pitrou, python-dev, sbt, eric.snow, Olivier.Grisel
2013-12-13 17:29:40brett.cannonsetmessageid: <>
2013-12-13 17:29:40brett.cannonlinkissue19946 messages
2013-12-13 17:29:40brett.cannoncreate