Comment 1 for bug 605907

Marius Gedminas (mgedmin) wrote :

For comparison purposes:

  - Accessing b.contents raises AttributeError: 'NoneType' object has no attribute 'tell'
  - Accessing b.url, b.title, b.isHtml, or calling b.getForm(), b.getControl(), b.getLink() all raise mechanize._mechanize.BrowserStateError: not viewing any document

I don't really care about this, but I suppose it would make sense to have both b.contents and b.headers also raise BrowserStateError before you make the first request.