Colin Alston <colin.als...@gmail.com> added the comment: I also hit upon this issue and IMHO returning False in a "permission denied" scenario is less than obvious behaviour.
It also means I have no way to catch this edge case in my own code immediately, I have to implement far larger logic to check now if False means the file doesn't exist, or if the user doesn't have access to the file. os.path.exists should absolutely raise a Permission exception. ---------- nosy: +cda32 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1117601> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com