Ok so for a number of reasons, I've been using s = __import__('parse')
for the longest time in Python2, now I sorta need to being my transitions to Python3 for certain projects (mainly due to SSL).
But there's no reload()
equivilant in Python3 as far as i've spotted.
There's only one option:
import parse
parse.reload() #works
But I really, really need this to work:
parse = __import__('parse')
parse.reload()
or
reload(parse)
Any ideas on how to get it working in Python3?
question from:
https://stackoverflow.com/questions/18249459/python3-reload-can-not-be-called-on-import-object 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…