Skip to content

Removing pathlib.Path.link_to() in python 3.12 is a breaking change which is a violation of semver.  #98264

@brunoais

Description

@brunoais

Bug report

Using python 3 where this is valid (e.g. Python 3.8):

from pathlib import Path
Path('destination').link_to('source')

It doesn't work in python 3.12 anymore.
I agree it should be deprecated at this point but the removal should be in python 4, not in python 3.
In my case, it will break some production code of my employer which started using link_to as soon as it became available in a python stable version (python 3.9).

Because this is breaking change on a minor version, without any security requirements, I consider that a bug.

Your environment

Python 3.8
Linux x64

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions