[issue2528] Change os.access to check ACLs under Windows

Tim Golden report at bugs.python.org
Sat Jul 10 20:48:51 CEST 2010

Tim Golden <mail at timgolden.me.uk> added the comment:

Although I'm the implementer of the patch (the concept
was discussed way back on c.l.py after a naive poster's
original request) I'm probably +0 myself. It's an attempt
to replace os.access' next-to-useless behaviour on Windows
with something which at least uses current security mechanisms
to determine its answer.

However, it's just one function among the many Posixesque
functions which don't quite map to Windows. And one which
you might well be advised to avoid in any case since there's
an race condition inherent in checking for a file's accessibility
and then making use of that fact.  Better to try and fall back.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list