On 06/05/2012 09:24, Chris Angelico wrote:
> On Sun, May 6, 2012 at 6:18 PM, Bob Cowdery <b...@bobcowdery.plus.com> wrote:
>> On 05/05/2012 23:05, Cameron Simpson wrote:
>>> Thought #1: you are calling time.time() and haven't unfortunately
>>> renamed it? (I doubt this scenario, though the lack of fractional part
>>> is interesting.)
>> Not sure what you mean by renamed it. I also tried datetime and that had
>> the same behaviour.
> In Python, names are nothing special, so you could do something like:
>
> time.time = lambda: 142857
>
> which means that time.time() will forever return that constant.
>
> Take a snapshot of time.time early in your code somewhere, and try
> using that instead, just in case. It's a long shot but might save you
> some insanity!
Thanks. I will try that. Away now until Monday when the battle will resume.

Bob
> ChrisA

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to