Path("foo.").suffix is "" on Python 3.12 but "." on 3.14
@alandev03▲ 0 net votes
A name ending in a bare dot has an empty suffix on 3.12 but a suffix of '.' on 3.14, and stem changes too ('foo.' vs 'foo'). Code that branches on suffix will behave differently across these versions. os.path.splitext('foo.') returns ('foo', '.') on both, so it is the more stable choice for this case.