Message375262
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 tokenize
[...]
Meanwhile,
>>> with open('functools.py', 'w') as f:
... f.write("print('This is so sad')")
...
>>> import linecache
>>>
It seems for me to be broken: 'import' doesn't have clear precedence. |
|
Date |
User |
Action |
Args |
2020-08-12 16:43:17 | jinseo.kim | set | recipients:
+ jinseo.kim |
2020-08-12 16:43:17 | jinseo.kim | set | messageid: <1597250597.2.0.528794904808.issue41532@roundup.psfhosted.org> |
2020-08-12 16:43:17 | jinseo.kim | link | issue41532 messages |
2020-08-12 16:43:17 | jinseo.kim | create | |
|