This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author larry
Recipients larry
Date 2012-05-25.16:16:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1337962561.24.0.688592071719.issue14917@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-05-25 16:16:01larrysetrecipients: + larry
2012-05-25 16:16:01larrysetmessageid: <1337962561.24.0.688592071719.issue14917@psf.upfronthosting.co.za>
2012-05-25 16:16:00larrylinkissue14917 messages
2012-05-25 16:16:00larrycreate