[Python-3000] The main module in Py3k

Giovanni Bajo rasky at develer.com
Tue Jul 4 18:01:08 CEST 2006


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?
-- 
Giovanni Bajo



More information about the Python-3000 mailing list