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

2019-06-29 Thread Tom Hale
, -- Tom Hale On 26/6/19 2:58 am, Serhiy Storchaka wrote: 04.06.19 10:25, Inada Naoki пише: If "ln -sf" is not atomic and do remove & symlink, web server or php will return 404 error between remove and symlink. I feel this use case is more real world application than "I don't want

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

2019-06-02 Thread Tom Hale
=== This is an example of atomicity ensuring that a condition remains valid *during* the operation. I gave an example of this in my initial post: On 13/5/19 4:38 pm, Tom Hale wrote: > It would be tempting to do: > > while True: > try: > os.s

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

2019-05-29 Thread Tom Hale
They say silence is golden... But I'm still looking for some feedback on the below. Cheers! -- Tom Hale On 16 May 2019 21:13:50 Tom Hale wrote: Thanks to all who have contributed to the discussion so far. I've noticed that the documentation[1] for both os.link and os.symlink doesn't

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

2019-05-16 Thread Tom Hale
ve someone to review and bounce ideas off given this will be my first stdlib contribution. If someone is willing to mentor, please contact me via private mail. [1] https://docs.python.org/library/os.html [2] https://pubs.opengroup.org/onlinepubs/9699919799/utilities/

Re: [Python-ideas] shutil.symlink to allow non-race replacement of existing link targets

2019-05-16 Thread Tom Hale
re likely be implemented poorly/incorrectly on a roll-your-own basis. To me, I see this as adding weight to the case of inclusion in a library. -- Tom Hale ___ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-

Re: [Python-ideas] shutil.symlink - "avoid constant bool flags"

2019-05-16 Thread Tom Hale
unctions, with ugly names like "hardlink_overwrite_follow_links" or "softlink_non_overwrite_link_to_links". It seems far more practicable to have only two functions with sensible boolean defaults, with the split being based on the underlying os module func

Re: [Python-ideas] (meta) Mailman list searching

2019-05-14 Thread Tom Hale
On 14/5/19 4:46 pm, Tom Hale wrote: How do I search this list's archives? Inspiration struck: Google for: site:https://mail.python.org/pipermail/python-ideas/ search terms -- Tom Hale ___ Python-ideas mailing list Python-ideas@python.org https

[Python-ideas] (meta) Mailman cleartext passwords

2019-05-14 Thread Tom Hale
s will use a password which is valuable to them. Should this "feature" be turned off for new subscribers? -- Tom Hale ___ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: h

Re: [Python-ideas] (meta) Broken link to gmane.org archive of python-ideas

2019-05-14 Thread Tom Hale
On 14/5/19 10:53 am, Brett Cannon wrote: Bugs about the website should be reported to https://github.com/python/pythondotorg . Thanks, reported at: https://github.com/python/pythondotorg/issues/1435 -- Tom Hale ___ Python-ideas mailing list Python

Re: [Python-ideas] (meta) Broken link to gmane.org archive of python-ideas

2019-05-13 Thread Tom Hale
the updated links, or is there a specific channel for web updates? -- Tom Hale ___ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/

[Python-ideas] shutil.symlink to allow non-race replacement of existing link targets

2019-05-13 Thread Tom Hale
entioned above) * https://stackoverflow.com/a/55742015/5353461 * https://git.savannah.gnu.org/cgit/coreutils.git/tree/src/ln.c -- Tom Hale ___ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct

[Python-ideas] (meta) Broken link to gmane.org archive of python-ideas

2019-05-13 Thread Tom Hale
Not Found I couldn't easily work out what the correct link should be, but part of the solution seems to be httpS:// Perhaps someone here knows how to wrangle gmane.org? -- Tom Hale ___ Python-ideas mailing list Python-ideas@python.org https