Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #9656
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <cameron@cskk.homeip.net> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.012 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'received:edu.au': 0.07; 'to:addr:comp.lang.python': 0.09; 'wrote:': 0.15; '"with': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'manipulating': 0.16; 'message- id:@cskk.homeip.net': 0.16; 'received:202.125.174': 0.16; 'received:202.125.174.133': 0.16; 'received:boardofstudies.nsw.edu.au': 0.16; 'received:cskk.homeip.net': 0.16; 'received:harvey.boardofstudies.nsw.edu.au': 0.16; 'received:homeip.net': 0.16; 'received:nsw.edu.au': 0.16; 'cc:addr :python-list': 0.16; 'cheers,': 0.19; 'file,': 0.22; 'cc:no real name:2**0': 0.22; 'header:In-Reply-To:1': 0.22; 'stuff': 0.22; 'works.': 0.23; 'second': 0.29; 'cc:addr:python.org': 0.30; '(so': 0.30; 'lock': 0.30; 'secondly': 0.30; 'yes.': 0.30; 'michael': 0.32; 'it.': 0.33; 'usually': 0.33; 'done': 0.33; 'header:User- Agent:1': 0.34; "can't": 0.34; 'charset:us-ascii': 0.36; 'file': 0.36; 'received:au': 0.36; 'cc:2**1': 0.37; 'open': 0.37; 'subject:: ': 0.38; 'think': 0.38; 'put': 0.38; 'introduced': 0.40; 'prevent': 0.40; 'where': 0.40; 'world': 0.65; 'received:202': 0.66; 'cameron': 0.67; 'subject:program': 0.67; 'lost': 0.73; 'advantages': 0.77; 'mechanism.': 0.84; 'island': 0.91 |
| Date | Sun, 17 Jul 2011 09:24:37 +1000 |
| From | Cameron Simpson <cs@zip.com.au> |
| To | comp.lang.python@googlegroups.com |
| Subject | Re: Looking for general advice on complex program |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| In-Reply-To | <5db1e650-54c2-46c4-bafc-496579f9c26c@glegroupsg2000goo.googlegroups.com> |
| User-Agent | Mutt/1.5.21 (2010-09-15) |
| References | <5db1e650-54c2-46c4-bafc-496579f9c26c@glegroupsg2000goo.googlegroups.com> |
| Cc | python-list@python.org, Billy Mays <81282ed9a88799d21e77957df2d84bd6514d9af6@myhashismyemail.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1138.1310858680.1164.python-list@python.org> (permalink) |
| Lines | 19 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1310858680 news.xs4all.nl 23933 [2001:888:2000:d::a6]:41061 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:9656 |
Show key headers only | View raw
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
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
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
csiph-web