A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-June/004438.html below:

stopping to trust os mtimes

[Python-Dev] Suggestion: stopping to trust os mtimes [Python-Dev] Suggestion: stopping to trust os mtimesSkip Montanaro skip@mojam.com (Skip Montanaro)
Sat, 3 Jun 2000 07:15:28 -0500 (CDT)
    Greg> I recall a case back '95 when I was editing a .py over an NFS
    Greg> mount and running the code on the target machine. The clocks on
    Greg> the two boxes were off by about three seconds. I was going thru
    Greg> the edit/run/edit/run cycle so quickly, that at one point, I saved
    Greg> a .py file that was older than the associated .pyc file.

A help I think would be to compare the mtimes of the .py and .pyc files with 
the current system clock and squawk if either appears to have been created
in the future.  I believe this is what GNU make does.

Of course, the best solution to all of this is the non-Python solution: use
NTP so your clocks stay sync'd.  It's even available out-of-the-box on my
iMac...

-- 
Skip Montanaro, skip@mojam.com, http://www.mojam.com/, http://www.musi-cal.com/
"We have become ... the stewards of life's continuity on earth.  We did not
ask for this role...  We may not be suited to it, but here we are."
- Stephen Jay Gould



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4