summaryrefslogtreecommitdiffstats
path: root/Lib/io.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-04-01 21:22:20 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-04-01 21:22:20 (GMT)
commit0e4caf4bd2e5a964c916a06fff64d5cadbe623b6 (patch)
treef1ac83f88e0be6544a8ee0ed310283cf27d29d0f /Lib/io.py
parent1fd32a6731295ae046383155c630c697e7a631a1 (diff)
downloadcpython-0e4caf4bd2e5a964c916a06fff64d5cadbe623b6.zip
cpython-0e4caf4bd2e5a964c916a06fff64d5cadbe623b6.tar.gz
cpython-0e4caf4bd2e5a964c916a06fff64d5cadbe623b6.tar.bz2
Merged revisions 70992,70995 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r70992 | georg.brandl | 2009-04-01 16:00:55 -0500 (Wed, 01 Apr 2009) | 1 line #4572: add SEEK_* values as constants in io.py. ........ r70995 | benjamin.peterson | 2009-04-01 16:12:54 -0500 (Wed, 01 Apr 2009) | 1 line add seek constants to __all__ ........
Diffstat (limited to 'Lib/io.py')
-rw-r--r--Lib/io.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/Lib/io.py b/Lib/io.py
index 8a8cf69..56ceb58 100644
--- a/Lib/io.py
+++ b/Lib/io.py
@@ -52,7 +52,8 @@ __author__ = ("Guido van Rossum <guido@python.org>, "
__all__ = ["BlockingIOError", "open", "IOBase", "RawIOBase", "FileIO",
"BytesIO", "StringIO", "BufferedIOBase",
"BufferedReader", "BufferedWriter", "BufferedRWPair",
- "BufferedRandom", "TextIOBase", "TextIOWrapper"]
+ "BufferedRandom", "TextIOBase", "TextIOWrapper",
+ "SEEK_SET", "SEEK_CUR", "SEEK_END"]
import _io
@@ -65,6 +66,11 @@ from _io import (DEFAULT_BUFFER_SIZE, BlockingIOError, UnsupportedOperation,
OpenWrapper = _io.open # for compatibility with _pyio
+# for seek()
+SEEK_SET = 0
+SEEK_CUR = 1
+SEEK_END = 2
+
# Declaring ABCs in C is tricky so we do it here.
# Method descriptions and default implementations are inherited from the C
# version however.