Added SEEK_* constants. Fixes #711830.
This commit is contained in:
parent
5a8a03784e
commit
22b457e03b
@ -636,6 +636,15 @@ These can be bit-wise OR'd together.
|
|||||||
Availability: Windows.
|
Availability: Windows.
|
||||||
\end{datadesc}
|
\end{datadesc}
|
||||||
|
|
||||||
|
\begin{datadesc}{SEEK_SET}
|
||||||
|
\dataline{SEEK_CUR}
|
||||||
|
\dataline{SEEK_END}
|
||||||
|
Parameteters to the \function{lseek()} function.
|
||||||
|
Their values are 0, 1, and 2, respectively.
|
||||||
|
Availability: Windows, Macintosh, \UNIX.
|
||||||
|
\versionadded{2.5}
|
||||||
|
\end{datadesc}
|
||||||
|
|
||||||
\subsection{Files and Directories \label{os-file-dir}}
|
\subsection{Files and Directories \label{os-file-dir}}
|
||||||
|
|
||||||
\begin{funcdesc}{access}{path, mode}
|
\begin{funcdesc}{access}{path, mode}
|
||||||
|
@ -29,7 +29,8 @@ _names = sys.builtin_module_names
|
|||||||
|
|
||||||
# Note: more names are added to __all__ later.
|
# Note: more names are added to __all__ later.
|
||||||
__all__ = ["altsep", "curdir", "pardir", "sep", "pathsep", "linesep",
|
__all__ = ["altsep", "curdir", "pardir", "sep", "pathsep", "linesep",
|
||||||
"defpath", "name", "path", "devnull"]
|
"defpath", "name", "path", "devnull",
|
||||||
|
"SEEK_SET", "SEEK_CUR", "SEEK_END"]
|
||||||
|
|
||||||
def _get_exports_list(module):
|
def _get_exports_list(module):
|
||||||
try:
|
try:
|
||||||
@ -135,6 +136,12 @@ from os.path import (curdir, pardir, sep, pathsep, defpath, extsep, altsep,
|
|||||||
|
|
||||||
del _names
|
del _names
|
||||||
|
|
||||||
|
# Python uses fixed values for the SEEK_ constants; they are mapped
|
||||||
|
# to native constants if necessary in posixmodule.c
|
||||||
|
SEEK_SET = 0
|
||||||
|
SEEK_CUR = 1
|
||||||
|
SEEK_END = 2
|
||||||
|
|
||||||
#'
|
#'
|
||||||
|
|
||||||
# Super directory utilities.
|
# Super directory utilities.
|
||||||
|
@ -37,6 +37,8 @@ Extension Modules
|
|||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- os.{SEEK_SET, SEEK_CUR, SEEK_END} have been added for convenience.
|
||||||
|
|
||||||
- Enhancements to the csv module:
|
- Enhancements to the csv module:
|
||||||
|
|
||||||
+ Dialects are now validated by the underlying C code, better
|
+ Dialects are now validated by the underlying C code, better
|
||||||
|
Loading…
x
Reference in New Issue
Block a user