[Python-checkins] r85253 - python/branches/py3k/Doc/library/os.rst

georg.brandl python-checkins at python.org
Wed Oct 6 10:52:48 CEST 2010


Author: georg.brandl
Date: Wed Oct 6 10:52:48 2010
New Revision: 85253
Log:
Copyedit of os.symlink() docs.
Modified:
 python/branches/py3k/Doc/library/os.rst
Modified: python/branches/py3k/Doc/library/os.rst
==============================================================================
--- python/branches/py3k/Doc/library/os.rst	(original)
+++ python/branches/py3k/Doc/library/os.rst	Wed Oct 6 10:52:48 2010
@@ -1371,27 +1371,25 @@
 
 
 .. function:: symlink(source, link_name)
+ symlink(source, link_name, target_is_directory=False)
 
 Create a symbolic link pointing to *source* named *link_name*.
 
- On Windows, symlink version takes an additional, optional parameter,
- *target_is_directory*, which defaults to False.
+ On Windows, symlink version takes an additional optional parameter,
+ *target_is_directory*, which defaults to ``False``.
 
- symlink(source, link_name, target_is_directory=False)
+ On Windows, a symlink represents a file or a directory, and does not morph to
+ the target dynamically. For this reason, when creating a symlink on Windows,
+ if the target is not already present, the symlink will default to being a
+ file symlink. If *target_is_directory* is set to ``True``, the symlink will
+ be created as a directory symlink. This parameter is ignored if the target
+ exists (and the symlink is created with the same type as the target).
+
+ Symbolic link support was introduced in Windows 6.0 (Vista). :func:`symlink`
+ will raise a :exc:`NotImplementedError` on Windows versions earlier than 6.0.
+ The *SeCreateSymbolicLinkPrivilege* is required in order to create symlinks.
 
- On Windows, a symlink represents a file or a directory, and does not
- morph to the target dynamically. For this reason, when creating a
- symlink on Windows, if the target is not already present, the symlink
- will default to being a file symlink. If *target_is_directory* is set to
- True, the symlink will be created as a directory symlink. This
- parameter is ignored if the target exists (and the symlink is created
- with the same type as the target).
-
- Symbolic link support was introduced in Windows 6.0 (Vista). *symlink*
- will raise a NotImplementedError on Windows versions earlier than 6.0. The
- SeCreateSymbolicLinkPrivilege is required in order to create symlinks.
-
- Availability: Unix, Windows
+ Availability: Unix, Windows.
 
 .. versionchanged:: 3.2
 Added support for Windows 6.0 (Vista) symbolic links.


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /