SF 964876 mapping a 0 length file
Document that it can't be done on Windows.
This commit is contained in:
parent
de48307f76
commit
0b4d1ee29d
|
@ -42,9 +42,11 @@ the underlying file.
|
||||||
\begin{funcdesc}{mmap}{fileno, length\optional{, tagname\optional{, access}}}
|
\begin{funcdesc}{mmap}{fileno, length\optional{, tagname\optional{, access}}}
|
||||||
\strong{(Windows version)} Maps \var{length} bytes from the file
|
\strong{(Windows version)} Maps \var{length} bytes from the file
|
||||||
specified by the file handle \var{fileno}, and returns a mmap
|
specified by the file handle \var{fileno}, and returns a mmap
|
||||||
object. If \var{length} is \code{0}, the maximum length of the map
|
object. If \var{length} is larger than the current size of the file,
|
||||||
will be the current size of the file when \function{mmap()} is
|
the file is extended to contain \var{length} bytes. If \var{length}
|
||||||
called.
|
is \code{0}, the maximum length of the map is the current size
|
||||||
|
of the file, except that if the file is empty Windows raises an
|
||||||
|
exception (you cannot create an empty mapping on Windows).
|
||||||
|
|
||||||
\var{tagname}, if specified and not \code{None}, is a string giving
|
\var{tagname}, if specified and not \code{None}, is a string giving
|
||||||
a tag name for the mapping. Windows allows you to have many
|
a tag name for the mapping. Windows allows you to have many
|
||||||
|
|
Loading…
Reference in New Issue