how to check how many bytes are available to read() ?

wealthychef wealthychef at mac.com
Fri Mar 15 13:07:12 EST 2002


grante at visi.com (Grant Edwards) wrote in message news:<slrna92v0d.8rs.grante at tuxtop.visi.com>...
> In article <2b57f654.0203142026.68ec3fc7 at posting.google.com>, wealthychef wrote:
> 
> > I have a file object f.  I want to know if there are any bytes
> > to read from it.
> Call select.select([f],[],[])

Yes, I was doing it backwards!  The manual is confusing in this
respect.  Thanks for the help!  Works perfectly now just as I wanted
it to.



More information about the Python-list mailing list