Message150193
| Author |
pitrou |
| Recipients |
Trundle, draghuram, eric.araujo, giampaolo.rodola, neologix, pitrou, r.david.murray, tarek, techtonik, vstinner |
| Date |
2011年12月23日.19:35:53 |
| SpamBayes Score |
8.7024694e-07 |
| Marked as misclassified |
No |
| Message-id |
<1324668907.3388.54.camel@localhost.localdomain> |
| In-reply-to |
<CAPkN8xK_GvRps1CXHPUb2=wYExpy0pHxNUoh6NqnYg7h8qzpfg@mail.gmail.com> |
| Content |
> os.rename(overwrite=False) by default will do less harm than the opposite,
Disagreed.
> Then I believe that having a small chance of overwriting file just created
> at exactly the same moment on a POSIX is a small price to pay for function
> that does safety check before rename on a platform that doesn't have such
> functionality at all.
Disagreed.
If you need the functionality, it's *one* additional line of code. Not
every trivial function deserves to be in the stdlib. |
|