Forum Archive

Reload for a "from x import y"

polymerchm

Is there such s thing

dgelessus

This should work:

import x
reload(x)
from x import y
del x # if the name gets in the way
0942v8653

You could also do

reload(__import__('x'))
from x import y