Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4b19d1e7
Commit
4b19d1e7
authored
Jan 16, 2005
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added SEEK_* constants. Fixes #711830.
parent
9c7198b8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
Doc/lib/libos.tex
Doc/lib/libos.tex
+9
-0
Lib/os.py
Lib/os.py
+8
-1
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Doc/lib/libos.tex
View file @
4b19d1e7
...
...
@@ -636,6 +636,15 @@ These can be bit-wise OR'd together.
Availability: Windows.
\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
}}
\begin{funcdesc}
{
access
}{
path, mode
}
...
...
Lib/os.py
View file @
4b19d1e7
...
...
@@ -29,7 +29,8 @@ _names = sys.builtin_module_names
# Note: more names are added to __all__ later.
__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
):
try
:
...
...
@@ -135,6 +136,12 @@ from os.path import (curdir, pardir, sep, pathsep, defpath, extsep, altsep,
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.
...
...
Misc/NEWS
View file @
4b19d1e7
...
...
@@ -37,6 +37,8 @@ Extension Modules
Library
-------
- os.{SEEK_SET, SEEK_CUR, SEEK_END} have been added for convenience.
- Enhancements to the csv module:
+ Dialects are now validated by the underlying C code, better
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment