This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients benjamin.peterson, gvanrossum, kawai, pitrou, vstinner
Date 2009-01-19.16:57:53
SpamBayes Score 0.00018971936
Marked as misclassified No
Message-id <1232384274.71.0.721657610254.issue4996@psf.upfronthosting.co.za>
In-reply-to
Content
Usage of read1():
 * _BytesIO.read1(n) (_bytesio.c): calls bytesio_read(n)
 * _BytesIO.read1(n) (io.py): return self.read(n)
 * BufferedReader._read_unlocked(n=None): 
   - if n is None or n==-1, call self.raw.read() in a "while 
True: ..." until EOF
   - else, call self.raw.read() until we get enough bytes
 * BufferedReader.read1(n): calls self._read_unlocked(...) but make 
sure that we don't call self.raw.read() more than once
 * BufferedRWPair.read1(n): return self.reader.read1(n)
 * BufferedRandom.read1(n): self.flush(); return BufferedReader.read1
(self, n)
 * TextIOWrapper._read_chunk() calls self.buffer.read1
(self._CHUNK_SIZE)

IOBase, RawIOBase, FileIO, BufferedIOBase, TextIOBase, TextIOWrapper, 
StringIO have no read1() method.
History
Date User Action Args
2009-01-19 16:57:54vstinnersetrecipients: + vstinner, gvanrossum, pitrou, benjamin.peterson, kawai
2009-01-19 16:57:54vstinnersetmessageid: <1232384274.71.0.721657610254.issue4996@psf.upfronthosting.co.za>
2009-01-19 16:57:53vstinnerlinkissue4996 messages
2009-01-19 16:57:53vstinnercreate