[PEAK] bug in peak.util.imports

Bob Ippolito bob at redivi.com
Wed Oct 20 22:25:30 EDT 2004


On Oct 20, 2004, at 22:13, Phillip J. Eby wrote:

> At 06:10 PM 10/20/04 -0400, Bob Ippolito wrote:
>> It's valid to replace sys.modules with a new list object,
>                                               ^^^^
> Er, I hope not.  ;)
>
>
>>  so peak.util.imports should not do "from sys import modules".
>
> You're probably right.  I can't wait till I can get around to 
> implementing a multi-interpreter API, so that I can actually have some 
> unit tests for the 'imports' module.

Ugh.. this cold medicine must really be doing something to me.  For 
some reason I thought it was sys.path!  I don't think sys.modules is 
replaceable.. the code should be fine.

Sorry about that.

-bob




More information about the PEAK mailing list