[Python-checkins] r54735 - peps/trunk/pep-3116.txt

guido.van.rossum python-checkins at python.org
Tue Apr 10 20:38:00 CEST 2007


Author: guido.van.rossum
Date: Tue Apr 10 20:37:53 2007
New Revision: 54735

Modified:
   peps/trunk/pep-3116.txt
Log:
seek() returns an int everywhere.


Modified: peps/trunk/pep-3116.txt
==============================================================================
--- peps/trunk/pep-3116.txt	(original)
+++ peps/trunk/pep-3116.txt	Tue Apr 10 20:37:53 2007
@@ -82,7 +82,7 @@
 
         Returns number of bytes written, which may be ``< len(b)``.
 
-    ``.seek(pos: int, whence: int = 0) -> None``
+    ``.seek(pos: int, whence: int = 0) -> int``
 
     ``.tell() -> int``
 
@@ -283,7 +283,7 @@
         The only supported use for the cookie is with .seek()
         with whence set to 0 (i.e. absolute seek).
 
-    ``.seek(pos: object, whence: int = 0) -> None``
+    ``.seek(pos: object, whence: int = 0) -> int``
 
         Seek to position ``pos``.  If ``pos`` is non-zero, it must
         be a cookie returned from ``.tell()`` and ``whence`` must be zero.


More information about the Python-checkins mailing list