This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients docs@python, ngie, r.david.murray
Date 2010-07-20.14:16:41
SpamBayes Score 0.00015987107
Marked as misclassified No
Message-id <1279635409.99.0.359862053483.issue9311@psf.upfronthosting.co.za>
In-reply-to
Content
I'm curious, are the perl and sh functions you say do the right thing wrappers around 'access', or are they some other sort of function?  The Python code is just a thin wrapper around the system function, and as such will follow the system function's semantics.

I do agree that the FreeBSD interpretation of the semantics of access is...unexpected, as well as unfortunate :)  So, a doc note about the superuser X_OK quirk is appropriate.  Care to propose a doc patch?  Personally I wouldn't include the stat example, but rather simply refer to stat as the portable way to check if the execute bit is set (and then you still have to call os.access to see if the real uid has permission to execute).

On the other hand, proposing a portable version of 'access' for inclusion in shutils might be appropriate, if you want to open a new issue for that (preferably with a patch including docs and unit tests :)
History
Date User Action Args
2010-07-20 14:16:50r.david.murraysetrecipients: + r.david.murray, ngie, docs@python
2010-07-20 14:16:49r.david.murraysetmessageid: <1279635409.99.0.359862053483.issue9311@psf.upfronthosting.co.za>
2010-07-20 14:16:42r.david.murraylinkissue9311 messages
2010-07-20 14:16:41r.david.murraycreate