I am learning python and have a problem passing a parameter. According to the documentation, the HTMLParser class is defines as follows:
class html.parser.HTMLParser(strict=False, *, convert_charrefs=False)
In my derived class I like to pass True in the convert_charrefs parameter. How can I do that? Here is my code so far
from html.parser import HTMLParser
class MyParser( HTMLParser ):
def __init(self)__:
super(MyParser, self).__init__( ??? )
So, what should i write instead of ??? to pass a True value in convert_charrfs?
Update: The obvious solution is to call __init__(convert_charrefs=True) I did try that, but it did not work for me because I was using python 3.3.4 instead of 3.4
def __init__(self)notdef __init(self)__