[issue21087] imp.frozen_init() incorrectly removes module during reload

2020-03-18 Thread Brett Cannon
Brett Cannon added the comment: No one has cared in nearly 6 years, so I'm closing as "won't fix". :) -- resolution: -> wont fix stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue21087] imp.frozen_init() incorrectly removes module during reload

2014-03-28 Thread Eric Snow
Eric Snow added the comment: The only concrete example I can think of that would be impacted is using PJE's lazy loader on a frozen module, and even that is unlikely to trigger the error case. -- nosy: +pje ___ Python tracker

[issue21087] imp.frozen_init() incorrectly removes module during reload

2014-03-28 Thread Eric Snow
New submission from Eric Snow: While reviewing code[1] for issue 20942, I noticed that when someone uses imp.frozen_init[2], the module is removed from sys.modules in some error cases. However, this should not be done when the module already exists (e.g. reload). As Brett pointed out in his r