Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5785
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <mail@timgolden.me.uk> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'attributes': 0.05; 'python)': 0.05; 'function,': 0.07; 'read-only': 0.07; 'attribute': 0.09; 'from:addr:timgolden.me.uk': 0.09; 'from:name:tim golden': 0.09; 'message-id:@timgolden.me.uk': 0.09; 'reflected': 0.09; 'pm,': 0.10; 'wrote:': 0.14; '[1].': 0.16; 'docs.': 0.16; 'posix': 0.16; 'received:74.55.86': 0.16; 'received:74.55.86.74': 0.16; 'received:smtp.webfaction.com': 0.16; 'received:webfaction.com': 0.16; 'useless.': 0.16; 'wording': 0.16; 'cc:addr:python-list': 0.17; 'subject:Windows': 0.20; 'header:In-Reply-To:1': 0.21; 'commit': 0.22; 'cc:2**0': 0.22; 'cc:no real name:2**0': 0.23; 'code': 0.24; '(and': 0.25; 'match': 0.26; 'windows': 0.26; "i'm": 0.27; 'problem': 0.28; 'version': 0.29; 'cc:addr:python.org': 0.30; 'tjg': 0.30; 'andrew': 0.32; 'propose': 0.32; 'does': 0.33; 'file': 0.34; 'that,': 0.34; 'header:User-Agent:1': 0.35; 'fails': 0.35; 'else': 0.35; 'quite': 0.36; 'something': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'received:192': 0.38; 'case,': 0.39; 'should': 0.39; 'current': 0.40; 'meaning': 0.40; 'really': 0.40; 'received:192.168.1': 0.40; 'from:addr:mail': 0.65; 'golden': 0.67; 'care': 0.72; 'agreement.': 0.91; 'to:none': 0.93 |
| Date | Thu, 19 May 2011 21:08:15 +0100 |
| From | Tim Golden <mail@timgolden.me.uk> |
| User-Agent | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10 |
| MIME-Version | 1.0 |
| CC | python-list@python.org |
| Subject | Re: os.access giving incorrect results on Windows |
| References | <21581D39FA3BDF40904D75AF9653CE2606567E4A@blrex.prog.altair.com> <4DD572FB.2010809@timgolden.me.uk> <4DD575E1.9060801@gmail.com> |
| In-Reply-To | <4DD575E1.9060801@gmail.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| 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.1800.1305835712.9059.python-list@python.org> (permalink) |
| Lines | 22 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1305835712 news.xs4all.nl 49180 [::ffff:82.94.164.166]:56764 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:5785 |
Show key headers only | View raw
On 19/05/2011 20:56, Andrew Berg wrote: > On 2011.05.19 02:43 PM, Tim Golden wrote: >> This is basically issue2528 [1]. >> The problem is that, although Windows (and Python) >> expose a version of os.access to match the Posix function, >> the meaning is so far removed on Windows as to be useless. > Does this affect just os.W_OK and directories or all of os.access()? > > In any case, this information should really be reflected in the docs. The current code is very naive: * A R_OK check always succeeds if the file's attributes can be read at all * A W_OK check fails if the file has its DOS read-only attribute set * A W_OK check always succeeds for a directory (because read-only means something else for directories). Would you care to propose some wording for the docs? I'm quite happy to commit if we can come to an agreement. TJG
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: os.access giving incorrect results on Windows Tim Golden <mail@timgolden.me.uk> - 2011-05-19 21:08 +0100
csiph-web