[issue37521] importlib.util.module_from_spec return value is not the same as in sys.modules

2019-07-10 Thread Brett Cannon
Brett Cannon added the comment: Thanks! I'll try to have a look when I can. -- assignee: -> brett.cannon ___ Python tracker ___

[issue37521] importlib.util.module_from_spec return value is not the same as in sys.modules

2019-07-09 Thread Benjamin Mintz
Benjamin Mintz added the comment: Updated. Also removed some old code which had irrelevant imports that I thought I removed already. The expected and actual output remain the same. -- Added file: https://bugs.python.org/file48463/importlib-util-module-from-spec-stale-reference.zip

[issue37521] importlib.util.module_from_spec return value is not the same as in sys.modules

2019-07-08 Thread Brett Cannon
Change by Brett Cannon : Removed file: https://bugs.python.org/file48461/importsfucked.zip ___ Python tracker ___ ___ Python-bugs-list

[issue37521] importlib.util.module_from_spec return value is not the same as in sys.modules

2019-07-08 Thread Brett Cannon
Change by Brett Cannon : Removed file: https://bugs.python.org/file48460/importsfucked.zip ___ Python tracker ___ ___ Python-bugs-list

[issue37521] importlib.util.module_from_spec return value is not the same as in sys.modules

2019-07-08 Thread Brett Cannon
Brett Cannon added the comment: Mind re-uploading the examples files with a more appropriate file name? (Saying "import is f-'ed" is not motivating to those of us who wrote it to try and fix this.) -- ___ Python tracker

[issue37521] importlib.util.module_from_spec return value is not the same as in sys.modules

2019-07-08 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +eric.snow, ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37521] importlib.util.module_from_spec return value is not the same as in sys.modules

2019-07-07 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37521] importlib.util.module_from_spec return value is not the same as in sys.modules

2019-07-07 Thread Benjamin Mintz
Benjamin Mintz added the comment: Updated main.py. New expected output: True New actual output: == False Traceback (most recent call last): File "main.py", line 14, in print(module.sub) AttributeError: module 'testext' has no attribute 'sub'

[issue37521] importlib.util.module_from_spec return value is not the same as in sys.modules

2019-07-07 Thread Benjamin Mintz
New submission from Benjamin Mintz : unzip the attached zip file and run main.py expected output: True actual output: False So what? If you follow these directions, https://docs.python.org/3.7/library/importlib.html#checking-if-a-module-can-be-imported , you will put a stale reference