[issue1439312] Patch for bug 1438185: os.renames deletes junction points
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: -BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1439312 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1439312] Patch for bug 1438185: os.renames deletes junction points
Changes by Ezio Melotti ezio.melo...@gmail.com: -- versions: +Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1439312 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1439312] Patch for bug 1438185: os.renames deletes junction points
Mark Lawrence breamore...@yahoo.co.uk added the comment: @Brian, Tim, any views on this? -- components: +Library (Lib) -None nosy: +BreamoreBoy, brian.curtin, tim.golden versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1439312 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1439312] Patch for bug 1438185: os.renames deletes junction points
Changes by Daniel Diniz aja...@gmail.com: -- stage: - test needed type: - behavior versions: +Python 3.0 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1439312 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1439312] Patch for bug 1438185: os.renames deletes junction points
Christian Heimes added the comment: Martin, you are the Windows expert. Does it sound right to you? -- assignee: - loewis nosy: +loewis, tiran versions: +Python 2.5, Python 2.6 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1439312 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1439312] Patch for bug 1438185: os.renames deletes junction points
Martin v. Löwis added the comment: I'm skeptical. If you consider junction points similar to symlinks on POSIX, then it would be semantically correct to leave the junction point in place, independent of whether their target directory is empty or not - on Unix, rmdir fails if the target is a symlink. Given the documentation, I think the removedirs function does exactly do what the documentation specifies as the algorithm (i.e. recursively rmdir until an error occurs). The promise (remove all empty intermediate directories) is not held: on POSIX, it would stop at a symlink even if that symlink was the only entry in the directory, and on Windows, the junction point is removed even if the target directory is not empty. I would rather fix this in the documentation than change something in the implementation. If the behavior is to be changed, the documentation needs to be updated. The patch does introduce a significant behavior change: if the last directory is not empty, it now silently returns; previously, it would raise OSError. _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1439312 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com