Message161587
The prototype for os.symlink on Windows adds a "target_is_directory" flag, which indicates whether or not the destination is a directory.
Surely we could detect that and pass in the correct value ourselves? A quick GetFileAttributes() call would do. I doubt this would make the function much slower, as it's about to write to that area of the disk anyway. And if os.symlink is a performance-critical function on Windows I'll eat my hat.
Since os.symlink support for Windows shipped in 3.2, we can't get rid of the argument at the same time. But we could just ignore it, and since it's marked as optional people could start removing it, and maybe we could deprecate it. |
|
Date |
User |
Action |
Args |
2012-05-25 16:16:01 | larry | set | recipients:
+ larry |
2012-05-25 16:16:01 | larry | set | messageid: <1337962561.24.0.688592071719.issue14917@psf.upfronthosting.co.za> |
2012-05-25 16:16:00 | larry | link | issue14917 messages |
2012-05-25 16:16:00 | larry | create | |
|