• Brett Cannon's avatar
    Issue #13959: Simplify imp.reload() by relying on a module's · 8a1d04c6
    Brett Cannon authored
    __loader__.
    
    Since import now sets __loader__ on all modules it creates and
    imp.reload() already relied on the attribute for modules that import
    didn't create, the only potential compatibility issue is if people
    were deleting the attribute on modules and expecting imp.reload() to
    continue to work.
    8a1d04c6
import.c 118 KB