I am familiar with the concept of Abstract Base Classes (ABC's), as providing sets of properties of the builtin objects, but I don't have really any experience working with them. I can see that there's a Mapping
ABC, and a MutableMapping that inherits from it, but I don't see a .fromkeys()
method (the only thing missing off the top of my head.)
Would I be able to craft a dict with purely ABC's? What would that look like? Would that amount to nearly the same thing as subclassing dict
? Would there be any benefit to doing that? What would be the use-case?