[Python-checkins] r70068 - python/branches/io-c/Lib/_pyio.py

benjamin.peterson python-checkins at python.org
Sat Feb 28 17:57:50 CET 2009


Author: benjamin.peterson
Date: Sat Feb 28 17:57:50 2009
New Revision: 70068

Log:
define read1() on the python implementation's BufferedIOBase

Modified:
   python/branches/io-c/Lib/_pyio.py

Modified: python/branches/io-c/Lib/_pyio.py
==============================================================================
--- python/branches/io-c/Lib/_pyio.py	(original)
+++ python/branches/io-c/Lib/_pyio.py	Sat Feb 28 17:57:50 2009
@@ -599,6 +599,10 @@
         """
         self._unsupported("read")
 
+    def read1(self, n: int=None) -> bytes:
+        """Read up to n bytes with at most one read() system call."""
+        self._unsupported("read1")
+
     def readinto(self, b: bytearray) -> int:
         """Read up to len(b) bytes into b.
 


More information about the Python-checkins mailing list