Message132902
| Author |
pitrou |
| Recipients |
alex, dabeaz, eric.araujo, gruszczy, nadeem.vawda, pitrou, r.david.murray, vstinner |
| Date |
2011年04月03日.22:41:02 |
| SpamBayes Score |
7.088062e-05 |
| Marked as misclassified |
No |
| Message-id |
<1301870460.3512.28.camel@localhost.localdomain> |
| In-reply-to |
<1301869729.01.0.184154211485.issue10791@psf.upfronthosting.co.za> |
| Content |
> Nadeem Vawda <nadeem.vawda@gmail.com> added the comment:
>
> > Is following change in GzipFile class enough:
> >
> > def read1(self, n):
> > return self.read(n)
> >
> > ? This satisfies TextIOWrapper to run readline correctly.
>
> Looks good to me.
Well, ideally, read1() should satisfy the condition stated in the
BufferedIOBase documentation - namely, that it issues at most one read()
call on the underlying stream. |
|