Tag Archives: class

super() function in Python raises a TypeError

Playing with class inheritance, I came across an unexpected behavior of super() function, which is used in the inheritance process. Consider this simple example of a class MyGraph thah inherits from a DiGraph class from networkx: import networkx as nx … Continue reading

Posted in Python | Tagged , | 7 Comments