[issue41532] Import precedence is broken in some library

2020-08-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is because module functools is already imported (you can see it in sys.modules), but module tokenize is not. It is likely due to module rlcompleter imported at startup on Linux, but not on Windows. -- nosy: +serhiy.storchaka resolution: -> not

[issue41532] Import precedence is broken in some library

2020-08-12 Thread Jinseo Kim
Jinseo Kim added the comment: My environment is Ubuntu 18.04.4 Python version: Python 3.8.0 (default, Oct 28 2019, 16:14:01) [GCC 8.3.0] on linux -- ___ Python tracker __

[issue41532] Import precedence is broken in some library

2020-08-12 Thread Irit Katriel
Irit Katriel added the comment: What is your environment - system and python version? I get this on master checkout on windows 10: Running Release|Win32 interpreter... Python 3.10.0a0 (heads/master:46e19b61d3, Aug 12 2020, 18:02:36) [MSC v.1916 32 bit (Intel)] on win32 Type "help", "copyrigh

[issue41532] Import precedence is broken in some library

2020-08-12 Thread Jinseo Kim
Jinseo Kim added the comment: Yes, I restarted and cleared directory before each test. -- ___ Python tracker ___ ___ Python-bugs-li

[issue41532] Import precedence is broken in some library

2020-08-12 Thread Irit Katriel
Irit Katriel added the comment: Did you restart python before the functools test? -- nosy: +iritkatriel ___ Python tracker ___ ___

[issue41532] Import precedence is broken in some library

2020-08-12 Thread 김진서
New submission from 김진서 : I found this behavior by chance: >>> with open('tokenize.py', 'w') as f: ... f.write("print('This is so sad')") ... >>> import linecache This is so sad >>> path/of/python/Lib/linecache.py: import functools import sys import os import tok