Gabriel Genellina wrote:
def readline(self, size=None): if size == None: line = self.file.readline() else: line = self.file.readline(size) # etc., etc.
Not obvious from the docs, but readline(-1) should be the same as readline().
(In 3.0b2, None also works, but this is not yet documented.) So try: def readline(self, size=-1): line = self.file.readline(size) -- http://mail.python.org/mailman/listinfo/python-list