Linked Questions
18 questions linked to/from Why use Abstract Base Classes in Python?
0 votes
1 answer
459 views
Abstraction in python
I understand what abstraction is, however, I do not how we would implement abstraction in python. When searching, all I was able to find are abstract classes which I do not see relating to abstraction ...
0 votes
1 answer
397 views
Pythonic way to improve subclasses of MutableSequence and MutableMapping
recently i needed to implement some data structures that could tell if they have been modified since a given point in time. Currently i have a ChangeDetectable class that implements the check but the ...
0 votes
0 answers
28 views
I don't understand the difference between an abstract class and a superclass
For example, this abstract class: from abc import ABC, abstractmethod class Polygon(ABC): # abstract method def noofsides(self): print("something") class Triangle(Polygon): ...