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 f
You've got too many _ in the name of __init__. The declaration of your constructor should be:
def __init__(self, title, number):
not:
def __init___(self, title, number):
You have a typo - there's 3 underscores here:
def __init___(self, title, number):
Should be:
def __init__(self, title, number):
Because it doesn't exactly match the name __init__
, Python only knows about the default constructor, def __init__(self)
.