commit | c7bb8577c7ccc48fa1e1db0204ae280fb81b075d | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Jun 10 21:31:01 1998 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Jun 10 21:31:01 1998 +0000 |
tree | 83ec3ede73421547d57cd979d3dbc961e4c69a98 | |
parent | 3e5fe422cc11796ef5f6e0c4c5b143488a50f5cc [diff] |
Some changes suggested/provided by Eric Raymond: - explain seekable - when seekable==1, test fp.tell() and set it to 0 if that fails - support overridable method iscomment(line) to weed out comments - check for unread() method on file object before trying to seek And one of my own: - Add a get() method which behaves like a dictionary's get(); this is actually implemented by giving getheader() an optional second argument to specify the default, and aliasing get to getheader.