[Python-bugs-list] gzip missing feature -- GzipFile.readlines(number) (PR#56)

guido@CNRI.Reston.VA.US guido@CNRI.Reston.VA.US
Thu, 19 Aug 1999 17:50:28 -0400 (EDT)


> gzip.GzipFile is supposed to imitate a Python file object, but it does not
> support calling the readlines method with an integer argument to limit the
> amount of data read.  
> 
> This makes it difficult to write programs which handle compressed and
> uncompressed data interchangeably, if they depend on third-party functions
> which call the readlines(number) method.

You're right.  Would it be okay if the extra argument was just
ignored?  (That would be a much simpler patch!)

--Guido van Rossum (home page: http://www.python.org/~guido/)