This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients ezio.melotti, pysean
Date 2013-01-14.13:00:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1358168402.33.0.076525274527.issue16963@psf.upfronthosting.co.za>
In-reply-to
Content
It works for me on 3.2.3, 3.2.3+, 3.3.0+, 3.4.0a0
>>> from html.parser import HTMLParser
>>> class LooseParser(HTMLParser):
...     def __init__(self, strict=False):
...             HTMLParser.__init__(self, strict=strict)
...     def handle_starttag(self, tag, attrs):
...             print('Tag:', tag)
... 
>>> p = LooseParser()
>>> p.feed('<p>hello</p>')
Tag: p
>>>
History
Date User Action Args
2013-01-14 13:00:02ezio.melottisetrecipients: + ezio.melotti, pysean
2013-01-14 13:00:02ezio.melottisetmessageid: <1358168402.33.0.076525274527.issue16963@psf.upfronthosting.co.za>
2013-01-14 13:00:02ezio.melottilinkissue16963 messages
2013-01-14 13:00:02ezio.melotticreate