[Python-3000] The main module in Py3k
Guido van Rossum
guido at python.org
Tue Jul 4 23:58:53 CEST 2006
\On 7/4/06, Giovanni Bajo <rasky at develer.com> wrote:
> Guido van Rossum wrote:
>
> >> Relative imports from modules executed with -m, however, would now
> >> be able to use the normal relative import mechanism and the
> >> __module_name__ workaround proposed for the 2.x series could
> >> disappear.
> >
> > Frankly, I am beginning to regret ever having endorsed the -m option.
>
> In case you mean the -m pkg.mod spelling, I agree. It's bringing a lot of
> complexity, including the __module_name__ hack, for exactly what gain? So
> that one doesn't have to write 2 liner wrapper installed as top-level module
> in the site-packages?
And by extension even the -m mod spelling, since its introduction led
to the argument that -m pkg.mod should not be left behind...
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-3000
mailing list