Hello, folks! I use mechanize.clientform to parse HTML-forms. I preliminary check response and call response.read().find("..."). But when it's taken to ClientForm.ParseResponse, it can't parse because of response.read() is zero-length text. The problem is that ClientForm.ParseResponse is not taken text of response, only object.
Example: import urllib from ClientForm import ParseResponse response = urllib.urlopen("http://yandex.ru") if -1 != response.read().find("foobar"): pass form = ParseResponse(response)[1] <-- there is exception IndexError -- http://mail.python.org/mailman/listinfo/python-list