]> granicus.if.org Git - python/commit
Major restructuring of _fileobject. Hopefully several things now work
authorGuido van Rossum <guido@python.org>
Thu, 8 Aug 2002 01:02:16 +0000 (01:02 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 8 Aug 2002 01:02:16 +0000 (01:02 +0000)
commit443fec3dd9c1a2c60b538af0504d4926e633b9b4
tree4359874f75a3b773e5f7dc11bc16a3d2548c38d4
parent8c94383fa8a58447652dacf17becd640e4b2eacf
Major restructuring of _fileobject.  Hopefully several things now work
correctly (the test at least succeed, but they don't test everything yet).

Also fix a performance problem in read(-1): in unbuffered mode, this would
read 1 byte at a time.  Since we're reading until EOF, that doesn't make
sense.  Use the default buffer size if _rbufsize is <= 1.
Lib/socket.py