Author: georg.brandl Date: Fri Nov 30 23:04:45 2007 New Revision: 59245 Modified: python/trunk/Doc/library/os.rst Log: Move lchmod() docs to correct place, and add versionadded tags. Modified: python/trunk/Doc/library/os.rst ============================================================================== --- python/trunk/Doc/library/os.rst (original) +++ python/trunk/Doc/library/os.rst Fri Nov 30 23:04:45 2007 @@ -528,6 +528,8 @@ Change the mode of the file given by *fd* to the numeric *mode*. See the docs for :func:`chmod` for possible values of *mode*. Availability: Unix. + .. versionadded:: 2.6 + .. function:: fchown(fd, uid, gid) @@ -535,6 +537,8 @@ and *gid*. To leave one of the ids unchanged, set it to -1. Availability: Unix. + .. versionadded:: 2.6 + .. function:: fdatasync(fd) @@ -594,13 +598,6 @@ tty(-like) device, else ``False``. Availability: Macintosh, Unix. -.. function:: lchmod(path, mode) - - Change the mode of *path* to the numeric *mode*. If path is a symlink, this - affects the symlink rather than the target. See the docs for :func:`chmod` - for possible values of *mode*. Availability: Unix. - - .. function:: lseek(fd, pos, how) Set the current position of file descriptor *fd* to position *pos*, modified by @@ -919,6 +916,15 @@ .. versionadded:: 2.6 +.. function:: lchmod(path, mode) + + Change the mode of *path* to the numeric *mode*. If path is a symlink, this + affects the symlink rather than the target. See the docs for :func:`chmod` + for possible values of *mode*. Availability: Unix. + + .. versionadded:: 2.6 + + .. function:: lchown(path, uid, gid) Change the owner and group id of *path* to the numeric *uid* and gid. This