@@ -14968,10 +14968,7 @@ os._isdir
14968
14968
14969
14969
path: 'O'
14970
14970
14971
- Return True if path is an existing directory.
14972
-
14973
- This follows symbolic links, so both islink() and isdir() can be true for the
14974
- same path.
14971
+ Return true if the pathname refers to an existing directory.
14975
14972
14976
14973
[clinic start generated code]*/
14977
14974
@@ -15049,10 +15046,7 @@ os._isfile
15049
15046
15050
15047
path: 'O'
15051
15048
15052
- Return True if path is an existing file.
15053
-
15054
- This follows symbolic links, so both islink() and isfile() can be true for the
15055
- same path.
15049
+ Test whether a path is a regular file
15056
15050
15057
15051
[clinic start generated code]*/
15058
15052
@@ -15130,11 +15124,7 @@ os._exists
15130
15124
15131
15125
path: 'O'
15132
15126
15133
- Return True if path refers to an existing path or an open file descriptor.
15134
-
15135
- Return False for broken symbolic links. On some platforms, this function may
15136
- return False if permission is not granted to execute os.stat() on the requested
15137
- file, even if the path exists.
15127
+ Test whether a path exists. Returns False for broken symbolic links
15138
15128
15139
15129
[clinic start generated code]*/
15140
15130
@@ -15204,9 +15194,7 @@ os._islink
15204
15194
15205
15195
path: 'O'
15206
15196
15207
- Return True if path refers to an existing directory entry that is a symbolic link.
15208
-
15209
- Return False if symbolic links are not supported by the Python runtime.
15197
+ Test whether a path is a symbolic link
15210
15198
15211
15199
[clinic start generated code]*/
15212
15200
0 commit comments