[Python-Dev] Re: Last call for comments on PEP 573 (Module State Access from C Extension Methods)

2020-03-11 Thread Petr Viktorin
On 2020-03-10 19:21, Stefan Behnel wrote: Hi Petr! Petr Viktorin schrieb am 14.01.20 um 14:37: It also includes a more drastic change: it removes the MRO walker from the proposal. Reflecting on the feedback, it became clear to me that a MRO walker, as it was described, won't give correct result

[Python-Dev] pathlib.Path: inconsistent symlink_to() and link_to()

2020-03-11 Thread Barney Gale
Hi, Pathlib's symlink_to() and link_to() methods have different argument orders, so: a.symlink_to(b) # Creates a symlink from A to B a.link_to(b) # Creates a hard link from B to A I don't think link_to() was intended to be implemented this way, as the docs say "Create a hard link point

[Python-Dev] Re: pathlib.Path: inconsistent symlink_to() and link_to()

2020-03-11 Thread James Edwards
Despite the bug being closed as WONTFIX, at the very least this seems like a valid docs issue. But (for whatever a non-core-dev opinion is worth), I'm +1 both on the proposed solution and deprecation.of `link_to()` Jim On Wed, Mar 11, 2020 at 10:45 AM Barney Gale wrote: > Hi, > > Pathlib's sym

[Python-Dev] Re: pathlib.Path: inconsistent symlink_to() and link_to()

2020-03-11 Thread Antoine Pitrou
On Wed, 11 Mar 2020 11:17:22 + Barney Gale wrote: > Hi, > > Pathlib's symlink_to() and link_to() methods have different argument > orders, so: > > a.symlink_to(b) # Creates a symlink from A to B > a.link_to(b) # Creates a hard link from B to A > > I don't think link_to() was inten

[Python-Dev] Re: pathlib.Path: inconsistent symlink_to() and link_to()

2020-03-11 Thread Brett Cannon
Antoine Pitrou wrote: > On Wed, 11 Mar 2020 11:17:22 + > Barney Gale barney.g...@gmail.com wrote: > > Hi, > > Pathlib's symlink_to() and link_to() methods have different argument > > orders, so: > > a.symlink_to(b) # Creates a symlink from A to B > > a.link_to(b) # Creates a hard link from B