[Python-Dev] fileobj.read(float): warning or error? (original) (raw)
John J Lee jjl at pobox.com
Tue Jul 22 21:56:31 CEST 2008
- Previous message: [Python-Dev] fileobj.read(float): warning or error?
- Next message: [Python-Dev] fileobj.read(float): warning or error?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, 22 Jul 2008, Cameron Simpson wrote: [...]
Leaving aside the 0.2 => 0 converstion, shouldn't read() raise an exception if asked for < 1 bytes? Or is there a legitimate use for read(0) with which I was not previously aware?
http://docs.python.org/lib/bltin-file-objects.html
read([size])
... If the size argument is negative or omitted, read all data until EOF is reached. ...
John
- Previous message: [Python-Dev] fileobj.read(float): warning or error?
- Next message: [Python-Dev] fileobj.read(float): warning or error?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]