pyxml

TypeError: __init__() takes exactly 1 argument (3 given) pyXML

不羁的心 提交于 2019-12-01 21:17:21
问题 I've recently started to learn how to use python to parse xml files. I took the tutorial from http://pyxml.sourceforge.net/topics/howto/node12.html When I run the following code I get the error: Traceback (most recent call last): File "C:\Users\Name\Desktop\pythonxml\tutorials\pythonxml\pyxml sourceforge\5.1 Comic Colection\SearchForComic.py", line 30, in -toplevel- dh = FindIssue('sandman', '62') TypeError: __init__() takes exactly 1 argument (3 given) code: from xml.sax import saxutils

TypeError: __init__() takes exactly 1 argument (3 given) pyXML

末鹿安然 提交于 2019-12-01 19:41:46
I've recently started to learn how to use python to parse xml files. I took the tutorial from http://pyxml.sourceforge.net/topics/howto/node12.html When I run the following code I get the error: Traceback (most recent call last): File "C:\Users\Name\Desktop\pythonxml\tutorials\pythonxml\pyxml sourceforge\5.1 Comic Colection\SearchForComic.py", line 30, in -toplevel- dh = FindIssue('sandman', '62') TypeError: __init__() takes exactly 1 argument (3 given) code: from xml.sax import saxutils class FindIssue(saxutils.DefaultHandler): def __init___(self, title, number): self.search_title, self