
Any idea using import syntax or even syntax similar to import is dead. Import is about modules and needs to stay about that. On Sun, May 29, 2016 at 10:10 AM, Pavol Lisy <pavol.lisy@gmail.com> wrote:
I see backward compatibility problem with import :
sys = dict(version_info=4.0) from sys import version_info
This is legal and using import for unpacking dict could change this behavior.
In case we put higher priority to import from module then unexpected module in PYTHONPATH could change unpacked value. Sort of problem not easy to found. From library maintainer point of view not easy to avoid too. _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/
-- --Guido van Rossum (python.org/~guido)