@@ -64,7 +64,7 @@ the :mod:`glob` module.)
64
64
Accepts a :term: `path-like object `.
65
65
66
66
67
- .. function :: basename(path)
67
+ .. function :: basename(path, / )
68
68
69
69
Return the base name of pathname *path *. This is the second element of the
70
70
pair returned by passing *path * to the function :func: `split `. Note that
@@ -237,7 +237,7 @@ the :mod:`glob` module.)
237
237
Accepts a :term: `path-like object `.
238
238
239
239
240
- .. function :: isabs(path)
240
+ .. function :: isabs(path, / )
241
241
242
242
Return ``True `` if *path * is an absolute pathname. On Unix, that means it
243
243
begins with a slash, on Windows that it begins with two (back)slashes, or a
@@ -261,7 +261,7 @@ the :mod:`glob` module.)
261
261
Accepts a :term: `path-like object `.
262
262
263
263
264
- .. function :: isdir(path)
264
+ .. function :: isdir(path, / )
265
265
266
266
Return ``True `` if *path * is an :func: `existing <exists> ` directory. This
267
267
follows symbolic links, so both :func: `islink ` and :func: `isdir ` can be true
@@ -372,7 +372,7 @@ the :mod:`glob` module.)
372
372
Accepts a :term: `path-like object ` for *path * and *paths *.
373
373
374
374
375
- .. function :: normcase(path)
375
+ .. function :: normcase(path, / )
376
376
377
377
Normalize the case of a pathname. On Windows, convert all characters in the
378
378
pathname to lowercase, and also convert forward slashes to backward slashes.
@@ -509,7 +509,7 @@ the :mod:`glob` module.)
509
509
Added Windows support.
510
510
511
511
512
- .. function :: split(path)
512
+ .. function :: split(path, / )
513
513
514
514
Split the pathname *path * into a pair, ``(head, tail) `` where *tail * is the
515
515
last pathname component and *head * is everything leading up to that. The
@@ -525,7 +525,7 @@ the :mod:`glob` module.)
525
525
Accepts a :term: `path-like object `.
526
526
527
527
528
- .. function :: splitdrive(path)
528
+ .. function :: splitdrive(path, / )
529
529
530
530
Split the pathname *path * into a pair ``(drive, tail) `` where *drive * is either
531
531
a mount point or the empty string. On systems which do not use drive
@@ -550,7 +550,7 @@ the :mod:`glob` module.)
550
550
Accepts a :term: `path-like object `.
551
551
552
552
553
- .. function :: splitroot(path)
553
+ .. function :: splitroot(path, / )
554
554
555
555
Split the pathname *path * into a 3-item tuple ``(drive, root, tail) `` where
556
556
*drive * is a device name or mount point, *root * is a string of separators
@@ -583,7 +583,7 @@ the :mod:`glob` module.)
583
583
.. versionadded :: 3.12
584
584
585
585
586
- .. function :: splitext(path)
586
+ .. function :: splitext(path, / )
587
587
588
588
Split the pathname *path * into a pair ``(root, ext) `` such that ``root + ext ==
589
589
path ``, and the extension, *ext *, is empty or begins with a period and contains at
0 commit comments