cpython/Misc/NEWS.d/next/Library/2024-05-11-20-23-45.gh-issu...

6 lines
308 B
ReStructuredText

Support single-dot file extensions in :attr:`pathlib.PurePath.suffix` and
related attributes and methods. For example, the
:attr:`~pathlib.PurePath.suffixes` of ``PurePath('foo.bar.')`` are now
``['.bar', '.']`` rather than ``[]``. This brings file extension splitting
in line with :func:`os.path.splitext`.