commit | 88ed8f2c502a436e4417800be3fafce4c15ba87a | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Wed Apr 01 21:00:55 2009 +0000 |
committer | Georg Brandl <georg@python.org> | Wed Apr 01 21:00:55 2009 +0000 |
tree | 756105f8b8a912d920e586d1cce3038e378d5d36 | |
parent | fff2f4bb03f93610c4375f95790e163cc5a94fd5 [diff] |
#4572: add SEEK_* values as constants in io.py.
diff --git a/Lib/io.py b/Lib/io.py index 61206c4..1cf9a18 100644 --- a/Lib/io.py +++ b/Lib/io.py
@@ -66,6 +66,11 @@ # open() uses st_blksize whenever we can DEFAULT_BUFFER_SIZE = 8 * 1024 # bytes +# for seek() +SEEK_SET = 0 +SEEK_CUR = 1 +SEEK_END = 2 + # py3k has only new style classes __metaclass__ = type