]> granicus.if.org Git - python/commit
Some changes suggested/provided by Eric Raymond:
authorGuido van Rossum <guido@python.org>
Wed, 10 Jun 1998 21:31:01 +0000 (21:31 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 10 Jun 1998 21:31:01 +0000 (21:31 +0000)
commitc7bb8577c7ccc48fa1e1db0204ae280fb81b075d
tree83ec3ede73421547d57cd979d3dbc961e4c69a98
parent3e5fe422cc11796ef5f6e0c4c5b143488a50f5cc
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.
Lib/rfc822.py