Re: [Python-ideas] Implement POSIX ln via shutil.link and shutil.symlink

2019-06-01 Thread Serhiy Storchaka
30.05.19 00:22, Barry пише: Serhiy, I think, is conflating two things. 1. How to write software robust aginst attack. 2. How to replace a symlink atomically. Why do you need to replace a symlink atomically? This is a solution, what problem it solves? _

Re: [Python-ideas] Implement POSIX ln via shutil.link and shutil.symlink

2019-06-01 Thread Greg Ewing
On Wed, May 29, 2019 at 10:07:38PM +0700, Tom Hale wrote: If somebody can create a file named link_name between unlink and symlink, he can also remove and create a file named link_name after symlink. I tbink there are some corner cases that can give different results if the sy

Re: [Python-ideas] Operator as first class citizens -- like in scala -- or yet another new operator?

2019-06-01 Thread Yanghao Hua
On Fri, May 31, 2019 at 3:48 PM Rhodri James wrote: > It really doesn't. If the end user is going to implement the logic of > this anyway, implementing signal linkage as a method call or class all > of its own is not a significant extra burden. There are very constructive discussions in terms ho