]> granicus.if.org Git - python/commit
Issue #13959: Simplify imp.reload() by relying on a module's
authorBrett Cannon <brett@python.org>
Sun, 15 Apr 2012 21:56:09 +0000 (17:56 -0400)
committerBrett Cannon <brett@python.org>
Sun, 15 Apr 2012 21:56:09 +0000 (17:56 -0400)
commit8a1d04c64372d4706572671a21ff9d3e4a6374ca
treedb9e9c2ade3bdf16d917f61a76a2e27ee524af05
parent7ceedb8c1ec96f3aa1db9e7d2aed89c70481caad
Issue #13959: Simplify imp.reload() by relying on a module's
__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.
Misc/NEWS
Python/import.c