Re: [Python-Dev] clarifying PEP 302 loader responsibilities upon failure

2009-02-14 Thread Brett Cannon
On Mon, Feb 9, 2009 at 14:02, Guido van Rossum wrote: > On Mon, Feb 9, 2009 at 1:56 PM, wrote: > > Guido and I were discussing what a loader should be responsible for when > > load_module is called and an exception is raised in relation to > sys.modules > > as PEP 302 says nothing about the top

Re: [Python-Dev] clarifying PEP 302 loader responsibilities upon failure

2009-02-09 Thread Guido van Rossum
On Mon, Feb 9, 2009 at 1:56 PM, wrote: > Guido and I were discussing what a loader should be responsible for when > load_module is called and an exception is raised in relation to sys.modules > as PEP 302 says nothing about the topic. > > We both agree that if the loader added a module to sys.mod

[Python-Dev] clarifying PEP 302 loader responsibilities upon failure

2009-02-09 Thread bcannon
Guido and I were discussing what a loader should be responsible for when load_module is called and an exception is raised in relation to sys.modules as PEP 302 says nothing about the topic. We both agree that if the loader added a module to sys.modules it should be removed, otherwise it sho