On 07/09/2014 12:03 PM, Ben Hoyt wrote: > > So here's the ways in which option #2 is now more complicated than option #1: > > 1) it has an additional "info" argument, the values of which have to > be documented ('os', 'type', 'lstat', and what each one means) > 2) it has an additional "onerror" argument, the signature of which and > fairly complicated return value is non-obvious and has to be > documented > 3) it requires user modification of the DirEntry object, which needs > documentation, and is potentially hard to implement > 4) because the DirEntry object now allows modification, you need a > stat_result() helper function to help you build your own stat values > > I'm afraid points 3 and 4 here add way too much complexity. I'm okay with dropping 3 and 4, and making the return from onerror being simply True to yield the entry, and False/None to skip it. That should make implementation much easier, and documentation not too strenuous either. -- ~Ethan~
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