En Mon, 28 Apr 2008 19:29:33 -0300, <[EMAIL PROTECTED]> escribió:
A question regarding cStringIO.StringIO(): is there a way to do get getvalue() to return all the bytes after the current file position (not before)? For example buf = cStringIO.StringIO() buf.write("foo bar") buf.seek(3) buf.getvalue(True) # the True argument means # to return the bytes up # to the current file position That returns 'foo'. Is there a way to get it to return ' bar'?
buf.read() - the obvious answer, once you know it :) -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list