By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,923 Members | 1,279 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,923 IT Pros & Developers. It's quick & easy.

exclusive shelve open

P: n/a
I'm trying to be safe and make sure only one python instance opens the
shelf. Any ideas?

Apr 29 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Apr 29, 2:12 pm, castiro...@gmail.com wrote:
I'm trying to be safe and make sure only one python instance opens the
shelf. Any ideas?
Using Windows.

Apr 29 '07 #2

P: n/a
En Sun, 29 Apr 2007 17:13:42 -0300, <ca********@gmail.comescribió:
On Apr 29, 2:12 pm, castiro...@gmail.com wrote:
>I'm trying to be safe and make sure only one python instance opens the
shelf. Any ideas?
Using Windows.
Use the locking function in the msvcrt module to lock/unlock the file.
Locking just the first byte is enough.

--
Gabriel Genellina
Apr 29 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.