summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2005-01-16 08:40:58 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2005-01-16 08:40:58 (GMT)
commit22b457e03bf5123c0a407e245567bee940de7cd5 (patch)
treee69e429e178317e7a41b05d9d69a928fd17cf0ac /Lib/os.py
parent5a8a03784e56e5931b4cdb3946494f8d15c72bd2 (diff)
downloadcpython-22b457e03bf5123c0a407e245567bee940de7cd5.zip
cpython-22b457e03bf5123c0a407e245567bee940de7cd5.tar.gz
cpython-22b457e03bf5123c0a407e245567bee940de7cd5.tar.bz2
Added SEEK_* constants. Fixes #711830.
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/Lib/os.py b/Lib/os.py
index 65b1830..d3b9a8d 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -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.