Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #9634 > unrolled thread
| Started by | Josh English <Joshua.R.English@gmail.com> |
|---|---|
| First post | 2011-07-16 10:37 -0700 |
| Last post | 2011-07-17 09:24 +1000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
Re: Looking for general advice on complex program Josh English <Joshua.R.English@gmail.com> - 2011-07-16 10:37 -0700
Re: Looking for general advice on complex program Cameron Simpson <cs@zip.com.au> - 2011-07-17 09:24 +1000
| From | Josh English <Joshua.R.English@gmail.com> |
|---|---|
| Date | 2011-07-16 10:37 -0700 |
| Subject | Re: Looking for general advice on complex program |
| Message-ID | <5db1e650-54c2-46c4-bafc-496579f9c26c@glegroupsg2000goo.googlegroups.com> |
Cameron, You use a directory as lock mechanism. I think I get how that works. When you're done manipulating the file, do you just remove the director? Josh
[toc] | [next] | [standalone]
| From | Cameron Simpson <cs@zip.com.au> |
|---|---|
| Date | 2011-07-17 09:24 +1000 |
| Message-ID | <mailman.1138.1310858680.1164.python-list@python.org> |
| In reply to | #9634 |
On 16Jul2011 10:37, Josh English <Joshua.R.English@gmail.com> wrote: | You use a directory as lock mechanism. I think I get how that works. | When you're done manipulating the file, do you just remove the director? Yes. The advantages of a directory are twofold: you can't mkdir() twice while you can usually open the same file for write more than once (hence the umask 0777 thing, to prevent that); secondly you can put stuff in it though that makes removing the directory more work when you're done with it. Cheers, -- Cameron Simpson <cs@zip.com.au> DoD#743 http://www.cskk.ezoshosting.com/cs/ THE LOST WORLD is based on (so loosely as to re-define "based on" as "with the same title as") Michael Crichton's sequel novel, which introduced us to a second island where dinosaurs were being genetically engineered. - Scott Renshaw on _Jurassic_Park_'s sequel
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web