[Python-checkins] python/dist/src/Lib os.py,1.83,1.84

loewis at users.sourceforge.net loewis at users.sourceforge.net
Sun Jan 16 09:41:31 CET 2005


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19604/Lib

Modified Files:
	os.py 
Log Message:
Added SEEK_* constants. Fixes #711830.


Index: os.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/os.py,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -d -r1.83 -r1.84
--- os.py	11 Oct 2004 18:12:15 -0000	1.83
+++ os.py	16 Jan 2005 08:40:57 -0000	1.84
@@ -29,7 +29,8 @@
 
 # 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 @@
 
 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.



More information about the Python-checkins mailing list