On 24 February 2015 at 22:54, Nick Coghlan <ncoghlan at gmail.com> wrote: >> On the principle of keeping it simple, I prefer just requiring a >> target, giving an error if the source name and target name are the >> same (which still leaves loopholes for the determined fool on case >> insensitive filesystems :-)) and just documenting that inplace >> modification isn't supported. The PEP clearly states that it's >> *minimal* tooling, after all... > > https://docs.python.org/3/library/os.path.html#os.path.samefile covers this > check in a robust, cross-platform way. Wow, I hadn't realised that samefile had become reliable on Windows (ino/dev always used to be unreliable years ago). It's the little things like this that sneak into new releases without much fanfare that make so much *actual* difference. Thanks to whoever implemented this, and to all the people putting in the little changes that make new versions so much better :-) Paul
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4