Ari added the comment: Sorry, it was a false alarm. I had a poorly constructed testcase. I was trying to grab all image links from html markup while simultaneously substituting image links to somesite.com with links to anothersite.com. I had handle_starttag and handle_startendtag defined in my class, but all the image processing resided in handle_starttag, and I didn't realize that handle_starttag is not automatically called when handle_startendtag is executed. So <img src="http://somesite.com/small_image.jpg" width="800px" /> went straight to handle_startendtag, and it did nothing to process the image link because handle_starttag was never called. When I removed handle_startendtag definition, I got the link I wanted (but the absense of handle_startendtag totally mangled the markup I was trying to produce).
---------- resolution: -> not a bug status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29276> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com