I have a recursive function, that takes a new set()
as argument. This is the function:
def attributes(node, set):
set.add(node.tag)
if not node.istext():
for n in node.content:
set = set.intersection(attributes(node, set()))
return set
but I get this error:
error -> TypeError
'set' object is not callable