File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -432,7 +432,7 @@ Pure paths provide the following methods and properties:
432
432
433
433
.. attribute :: PurePath.suffix
434
434
435
- The file extension of the final component, if any::
435
+ The last dot-separated portion of the final component, if any::
436
436
437
437
>>> PurePosixPath('my/library/setup.py').suffix
438
438
'.py'
@@ -441,10 +441,11 @@ Pure paths provide the following methods and properties:
441
441
>>> PurePosixPath('my/library').suffix
442
442
''
443
443
444
+ This is commonly called the file extension.
444
445
445
446
.. attribute :: PurePath.suffixes
446
447
447
- A list of the path's file extensions::
448
+ A list of the path's suffixes, often called file extensions::
448
449
449
450
>>> PurePosixPath('my/library.tar.gar').suffixes
450
451
['.tar', '.gar']
Original file line number Diff line number Diff line change @@ -577,7 +577,8 @@ Path objects are traversable using the ``/`` operator or ``joinpath``.
577
577
578
578
.. data :: Path.suffix
579
579
580
- The file extension of the final component.
580
+ The last dot-separated portion of the final component, if any.
581
+ This is commonly called the file extension.
581
582
582
583
.. versionadded :: 3.11
583
584
Added :data: `Path.suffix ` property.
@@ -591,7 +592,7 @@ Path objects are traversable using the ``/`` operator or ``joinpath``.
591
592
592
593
.. data :: Path.suffixes
593
594
594
- A list of the path’s file extensions.
595
+ A list of the path’s suffixes, commonly called file extensions.
595
596
596
597
.. versionadded :: 3.11
597
598
Added :data: `Path.suffixes ` property.
You can’t perform that action at this time.
0 commit comments