Adopt a more Pythonic coding style in 60 minutes of practice each week. Python Morsels includes exercises and screencasts by a professional Python trainer.
SHOP NOWBut couldn't you use importlib.reload? While that function CAN be handy, it's often more hassle than it's worth. While using reload, you'll need to make sure to recreate any instances of old classes. Also note that refreshing "" imports is messy.
Posted 2 years ago (21 July 2022)