Re: Strange problem when using imp.load_module

2009-04-23 Thread pythoncurious
Well spotted :) That does seem to be the problem. Adding removal of the .pyc file will make the tests pass. I guess that python doesn't use the higher resolution timestamp you can get from at least Solaris when doing 'stat' on a file. Thanks for the help. /Mattias On Apr 23, 10:28 pm, Arnaud

Re: Strange problem when using imp.load_module

2009-04-23 Thread Arnaud Delobelle
pythoncuri...@gmail.com writes: > Hi, Hi, I have a guess at explaining the behaviour you describe - see below. > I'm having problem when I'm trying to import modules using the > imp.load_module function. > At the end of this post there's some code I wrote to illustrate the > problem. > The code

Strange problem when using imp.load_module

2009-04-23 Thread pythoncurious
Hi, I'm having problem when I'm trying to import modules using the imp.load_module function. At the end of this post there's some code I wrote to illustrate the problem. The code istself doesn't make much sense, but what I'm trying to do in reality is allow people to customize an application by wr