[New-bugs-announce] [issue4195] Regression for executing packages

vajda report at bugs.python.org
Fri Oct 24 20:44:59 CEST 2008

New submission from vajda <vajda at osafoundation.org>:

Copy of #2751.

Having discussed this with Nick a bit more over email, he suggested that
package execution could actually be properly supported by looking for a
__main__ module inside the package and executing it instead. This is
consistent with the way .zip archives are executed and would neatly
resolve this problem. I attached a simple patch implementing this.

Nick also said that fixing this might be considered a new feature and
might have to wait until 2.7. Given that this worked on Python 2.5,
albeit unintentionally, I'd argue that this is closer to a fix of a
somewhat buggy Python 2.5 feature than a new feature in 2.6.

components: Interpreter Core
files: patch.2751
messages: 75175
nosy: benjamin.peterson, ncoghlan, vajda
severity: normal
status: open
title: Regression for executing packages
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file11876/patch.2751

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list