A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-March/013646.html below:

[Python-Dev] PEP dircache.py core modification

[Python-Dev] PEP dircache.py core modification [Python-Dev] PEP dircache.py core modificationGuido van Rossum guido@digicool.com
Fri, 16 Mar 2001 21:42:29 -0500
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