Sorry, I see no merit in your proposal [to add "." and ".." back into the output of os.listdir()]. You are overlooking the fact that the os module in Python is intended to be a *portable* interface to operating system functionality. The presence of "." and ".." in a directory listing is not supported on all platforms, e.g. not on Macintosh. Also, my experience with using os.listdir() way back, when it *did* return "." and "..", was that *every* program using os.listdir() had to be careful to filter out "." and "..". It simply wasn't useful to include these. --Guido van Rossum (home page: http://www.python.org/~guido/)
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