- 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.
For comparison purposes:
- Accessing b.contents raises AttributeError: 'NoneType' object has no attribute 'tell' _mechanize. BrowserStateErr or: not viewing any document
- Accessing b.url, b.title, b.isHtml, or calling b.getForm(), b.getControl(), b.getLink() all raise mechanize.
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.