New submission from Georg Brandl ge...@python.org:
access(2) can return errnos that correspond to input errors or general system
faults, such as EINVAL, EIO or ENOMEM. In this case, an exception should be
raised instead of returning False.
It is probably best to whitelist those errnos that
Changes by Ross Lagerwall rosslagerw...@gmail.com:
--
nosy: +rosslagerwall
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10758
___
___
Antoine Pitrou pit...@free.fr added the comment:
The list of errnos indicating missing access seems open-ended.
Things such as:
[ENAMETOOLONG]
The length of a component of a pathname is longer than {NAME_MAX}.
[ENOENT]
A component of path does not name an existing file or path is an
Martin v. Löwis mar...@v.loewis.de added the comment:
I don't think we can change this for the maintenance branches. The code behaves
according to the documentation:
access(path, mode) - True if granted, False otherwise
False otherwise is really meant that way: otherwise. The specific