On 9 July 2014 02:08, Ben Hoyt <benhoyt at gmail.com> wrote: > Comments and votes, please! +1 on option 1 (current PEP approach) at the moment, but I would like to see how the error handling would look (suppose the function logs files that can't be statted, and assumes a size of 0 for them). The idea of a multi-level ensure_lstat isn't unreasonable, either, and that helps option 2. The biggest issue *I* see with option 2 is that people won't remember to add the ensure_XXX argument, and that will result in more code that seems to work but fails cross-platform. Unless scandir deliberately fails if you use an attribute that you haven't "ensured", but that would be really unfriendly... Paul
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