[Python-Dev] os.access on Windows (original) (raw)

Tim Golden Tim.Golden at cbsoutdoor.co.uk
Fri May 20 10:38:24 CEST 2011


There's a thread on python-list at the moment:

http://mail.python.org/pipermail/python-list/2011-May/1272505.html

which is discussing the validity of os.access results on Windows. Now we've been here before: I raised issue2528 for a previous enquiry some years ago and proffered a patch which uses the AccessCheck API to perform the equivalent check, but didn't follow through.

Someone on the new thread is suggesting -- validly -- that the docs should highlight the limitations of this call on Windows. But the docs for that call are already fairly involved:

http://docs.python.org/library/os.html#os.access

We seem to have a few options in increasing order of difficulty:

As a side note, the pywin32 packages don't actually include AccessCheck at the moment. (Which makes it slightly harder to explain to people how they could do this check for themselves). It could probably be added over there which might ease the burden over here.

Opinions?

TJG Tim Golden Very Senior Analyst Programmer

CBS Outdoor UK Camden Wharf 28 Jamestown Road London NW1 7BY T: 020 7482 3000 F: 020 7267 4944

http://www.cbsoutdoor.co.uk/ http://www.cbsoutdoor.co.uk/ http://www.bigbuschallenge.com/ Don't waste paper. Think before you print. The contents of this e-mail are confidential to the ordinary user of the e-mail address to which it was addressed, and may also be privileged. If you are not the addressee of this e-mail you may not copy, forward, disclose or otherwise use it or any part of it in any form whatsoever. If you have received this e-mail in error, please e-mail the sender by replying to this message. CBS Outdoor Ltd reserves the right to monitor e-mail communications from external/internal sources for the purposes of ensuring correct and appropriate use of CBS Outdoor facilities. CBS Outdoor Limited, registered in England and Wales with company number 02866133 and registered address at Camden Wharf, 28 Jamestown Road, London, NW1 7BY.


This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk




More information about the Python-Dev mailing list