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 _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
