On 27/06/12 02:19:03, Giampaolo RodolĂ wrote: > 2012/6/27 Cameron Simpson <cs at zip.com.au>: >> So I'd be +0.5 for making the docs more clear that True is reliable and >> False may merely mean "could not access". > > +1 +1 > I was about to propose a 'strict' parameter which lets the exception > propagate in case of errno != EACCES/EPERM but a doc fix is probably > just fine. > I'll file a bug report later today. A 'strict' parameter that just propagates the exception might be a good idea. That would allow the user to deal with whatever issues stat() encounters. Arbitrarily mapping EPERM to 'False' would be unhelpful, as it leaves the user in a position where one value can mean two different things. -- HansM
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4