[Python-3000] PEP to change how the main module is delineated

Adam Olsen rhamph at gmail.com
Tue Apr 24 02:00:42 CEST 2007


On 4/23/07, Guido van Rossum <guido at python.org> wrote:
> On 4/23/07, Adam Olsen <rhamph at gmail.com> wrote:
> > I note there's 26 files
> > marked executable and 50 with #!/usr/bin/env python, so there's quite
> > a bit of prior art in the "old way".
>
> Where are these files? If they are directly in Lib, that's not a
> problem. The PEP only addresses what happens if these are in a
> subpackage (like test).

$ ls -l Lib/test/*.py | grep -c '^...x'
26
$ head -qn 1 Lib/test/*.py | grep -c /usr/bin/env
50


> > Besides correcting the stdlib, adding a warning when running a script
> > from a dir with __init__.py would help change the momentum.
>
> Patch anyone? We could move regrtest out of the test package into Lib.

-- 
Adam Olsen, aka Rhamphoryncus


More information about the Python-3000 mailing list