diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2010-07-23 12:16:41 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2010-07-23 12:16:41 (GMT) |
commit | c9e1c7d97f97a4aa18b984bb62dedaf6bb5aa251 (patch) | |
tree | a221da32da6cec2c5e088e1b56586f3cf6304a79 /Doc | |
parent | e186e384f4fb11158b448d94f37aaf2a3ed6b45e (diff) | |
download | cpython-c9e1c7d97f97a4aa18b984bb62dedaf6bb5aa251.zip cpython-c9e1c7d97f97a4aa18b984bb62dedaf6bb5aa251.tar.gz cpython-c9e1c7d97f97a4aa18b984bb62dedaf6bb5aa251.tar.bz2 |
Issue #6095: Make directory argument to os.listdir optional.
Patch by Virgil Dupras.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/os.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 9167b30..a4dec4c 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -1049,10 +1049,10 @@ Files and Directories Availability: Unix. -.. function:: listdir(path) +.. function:: listdir([path]) Return a list containing the names of the entries in the directory given by - *path*. The list is in arbitrary order. It does not include the special + *path* (default: '.'). The list is in arbitrary order. It does not include the special entries ``'.'`` and ``'..'`` even if they are present in the directory. This function can be called with a bytes or string argument, and returns @@ -1060,6 +1060,8 @@ Files and Directories Availability: Unix, Windows. + .. versionchanged:: 3.2 + The *path* parameter became optional. .. function:: lstat(path) |