Message80193
| 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:54 | vstinner | set | recipients:
+ vstinner, gvanrossum, pitrou, benjamin.peterson, kawai |
| 2009年01月19日 16:57:54 | vstinner | set | messageid: <1232384274.71.0.721657610254.issue4996@psf.upfronthosting.co.za> |
| 2009年01月19日 16:57:53 | vstinner | link | issue4996 messages |
| 2009年01月19日 16:57:53 | vstinner | create |
|