mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #6095: Make directory argument to os.listdir optional.
Patch by Virgil Dupras.
This commit is contained in:
parent
e186e384f4
commit
c9e1c7d97f
4 changed files with 35 additions and 14 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue