@@ -863,9 +863,9 @@ as internal buffering of data.
863863 :data: `os.SEEK_HOLE ` or :data: `os.SEEK_DATA `.
864864
865865
866- .. function :: open(file , flags, mode=0o777, *, dir_fd=None)
866+ .. function :: open(path , flags, mode=0o777, *, dir_fd=None)
867867
868- Open the file *file * and set various flags according to *flags * and possibly
868+ Open the file *path * and set various flags according to *flags * and possibly
869869 its mode according to *mode *. When computing *mode *, the current umask value
870870 is first masked out. Return the file descriptor for the newly opened file.
871871 The new file descriptor is :ref: `non-inheritable <fd_inheritance >`.
@@ -1071,10 +1071,10 @@ or `the MSDN <http://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Window
10711071 :meth: `~file.read ` or :meth: `~file.readline ` methods.
10721072
10731073
1074- .. function :: sendfile(out, in, offset, nbytes )
1075- sendfile(out, in, offset, nbytes , headers=None, trailers=None, flags=0)
1074+ .. function :: sendfile(out, in, offset, count )
1075+ sendfile(out, in, offset, count , headers=None, trailers=None, flags=0)
10761076
1077- Copy *nbytes * bytes from file descriptor *in * to file descriptor *out *
1077+ Copy *count * bytes from file descriptor *in * to file descriptor *out *
10781078 starting at *offset *.
10791079 Return the number of bytes sent. When EOF is reached return 0.
10801080
@@ -1088,7 +1088,7 @@ or `the MSDN <http://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Window
10881088 *trailers * are arbitrary sequences of buffers that are written before and
10891089 after the data from *in * is written. It returns the same as the first case.
10901090
1091- On Mac OS X and FreeBSD, a value of 0 for *nbytes * specifies to send until
1091+ On Mac OS X and FreeBSD, a value of 0 for *count * specifies to send until
10921092 the end of *in * is reached.
10931093
10941094 All platforms support sockets as *out * file descriptor, and some platforms
@@ -1683,10 +1683,10 @@ features:
16831683 The *dir_fd * argument.
16841684
16851685
1686- .. function :: mknod(filename , mode=0o600, device=0, *, dir_fd=None)
1686+ .. function :: mknod(path , mode=0o600, device=0, *, dir_fd=None)
16871687
16881688 Create a filesystem node (file, device special file or named pipe) named
1689- *filename *. *mode * specifies both the permissions to use and the type of node
1689+ *path *. *mode * specifies both the permissions to use and the type of node
16901690 to be created, being combined (bitwise OR) with one of ``stat.S_IFREG ``,
16911691 ``stat.S_IFCHR ``, ``stat.S_IFBLK ``, and ``stat.S_IFIFO `` (those constants are
16921692 available in :mod: `stat `). For ``stat.S_IFCHR `` and ``stat.S_IFBLK ``,
@@ -2210,9 +2210,9 @@ features:
22102210 .. versionadded :: 3.3
22112211
22122212
2213- .. function :: symlink(source, link_name , target_is_directory=False, *, dir_fd=None)
2213+ .. function :: symlink(src, dst , target_is_directory=False, *, dir_fd=None)
22142214
2215- Create a symbolic link pointing to *source * named *link_name *.
2215+ Create a symbolic link pointing to *src * named *dst *.
22162216
22172217 On Windows, a symlink represents either a file or a directory, and does not
22182218 morph to the target dynamically. If the target is present, the type of the
@@ -2282,20 +2282,20 @@ features:
22822282 The *dir_fd * parameter.
22832283
22842284
2285- .. function :: utime(path, times=None, *, ns=None , dir_fd=None, follow_symlinks=True)
2285+ .. function :: utime(path, times=None, *[ , ns] , dir_fd=None, follow_symlinks=True)
22862286
22872287 Set the access and modified times of the file specified by *path *.
22882288
22892289 :func: `utime ` takes two optional parameters, *times * and *ns *.
22902290 These specify the times set on *path * and are used as follows:
22912291
2292- - If *ns * is not `` None `` ,
2292+ - If *ns * is specified ,
22932293 it must be a 2-tuple of the form ``(atime_ns, mtime_ns) ``
22942294 where each member is an int expressing nanoseconds.
22952295 - If *times * is not ``None ``,
22962296 it must be a 2-tuple of the form ``(atime, mtime) ``
22972297 where each member is an int or float expressing seconds.
2298- - If *times * and *ns * are both `` None `` ,
2298+ - If *times * is `` None `` and *ns * is unspecified ,
22992299 this is equivalent to specifying ``ns=(atime_ns, mtime_ns) ``
23002300 where both times are the current time.
23012301
@@ -2846,9 +2846,10 @@ written in Python, such as a mail server's external command delivery program.
28462846 Availability: Unix.
28472847
28482848
2849- .. function :: popen(command , mode='r', buffering=-1)
2849+ .. function :: popen(cmd , mode='r', buffering=-1)
28502850
2851- Open a pipe to or from *command *. The return value is an open file object
2851+ Open a pipe to or from command *cmd *.
2852+ The return value is an open file object
28522853 connected to the pipe, which can be read or written depending on whether *mode *
28532854 is ``'r' `` (default) or ``'w' ``. The *buffering * argument has the same meaning as
28542855 the corresponding argument to the built-in :func: `open ` function. The
0 commit comments