A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/348001.html below:

How to use a timer in Python?

How to use a timer in Python? How to use a timer in Python?Paul Rubin http
Fri Sep 23 04:20:46 EDT 2005
Nico Grubert <nicogrubert at gmail.com> writes:
> while 'transfer.lock' in os.listdir( WINDOWS_SHARE ):
>      print "Busy, please wait..."
>      time.sleep(10)
> 
> f = open(WINDOWS_SHARE + '/myfile', 'w')

But there's a race condition, and don't you have to make your own lock
before writing myfile, so that the cron job won't clobber it or miss it?

More information about the Python-list mailing list

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