[issue31642] None value in sys.modules no longer blocks import

2017-10-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.8 ___ Python tracker

[issue31642] None value in sys.modules no longer blocks import

2017-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 6f059ab80a351a7dd85cc57c5ca240f817a79c5d by Serhiy Storchaka in branch '3.6': [3.6] bpo-31642: Restore blocking "from" import by setting None in sys.modules. (GH-3834). (#3923)

[issue31642] None value in sys.modules no longer blocks import

2017-10-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +3896 ___ Python tracker ___ ___

[issue31642] None value in sys.modules no longer blocks import

2017-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset f07e2b64df6304a36fb5e29397d3c77a7ba17704 by Serhiy Storchaka in branch 'master': bpo-31642: Restore blocking "from" import by setting None in sys.modules. (#3834)

[issue31642] None value in sys.modules no longer blocks import

2017-09-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 3834 provide possible solution of this issue. Initially import errors were silenced for solving issue15715. An import error raised when import was blocked by setting None in sys.modules was not silenced because it has

[issue31642] None value in sys.modules no longer blocks import

2017-09-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +3815 stage: needs patch -> patch review ___ Python tracker

[issue31642] None value in sys.modules no longer blocks import

2017-09-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a side effect of issue15767. The exception is raised in _find_and_load, but it is always silenced in _handle_fromlist. -- ___ Python tracker

[issue31642] None value in sys.modules no longer blocks import

2017-09-29 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list

[issue31642] None value in sys.modules no longer blocks import

2017-09-29 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue31642] None value in sys.modules no longer blocks import

2017-09-29 Thread Christian Heimes
Change by Christian Heimes : -- stage: -> needs patch type: -> behavior ___ Python tracker ___

[issue31642] None value in sys.modules no longer blocks import

2017-09-29 Thread Christian Heimes
Change by Christian Heimes : -- nosy: +brett.cannon, eric.snow, ncoghlan ___ Python tracker ___

[issue31642] None value in sys.modules no longer blocks import

2017-09-29 Thread Christian Heimes
New submission from Christian Heimes : Since Python 3.6, the blocking of imports is broken for 'from package import module' imports. $ mkdir a $ touch a/__init__.py a/b.py >>> import sys >>> sys.modules['a.b'] = None >>> from a import b >>> b is None True >>> import a.b