Author steven.daprano
Recipients paul.moore, prasechen, steve.dower, steven.daprano, tim.golden, zach.ware
Date 2020-09-12.04:14:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1599884068.48.0.604814123761.issue41770@roundup.psfhosted.org>
In-reply-to
Content
This is not a bug, it is working as designed. Importing takes the module from the cache. You can either delete the module from the cache:

    del sys.modules['modulename']
    import modulename  # reloads from the module file


or possibly simpler, use reload:

    importlib.reload(modulename)
History
Date User Action Args
2020-09-12 04:14:28steven.dapranosetrecipients: + steven.daprano, paul.moore, tim.golden, zach.ware, steve.dower, prasechen
2020-09-12 04:14:28steven.dapranosetmessageid: <1599884068.48.0.604814123761.issue41770@roundup.psfhosted.org>
2020-09-12 04:14:28steven.dapranolinkissue41770 messages
2020-09-12 04:14:28steven.dapranocreate