What is the difference between a MappingView container and a Sized container? Any examples on how to implement a MappingView container?
I might be misunderstanding ABCs and the docs entirely, but a MappingView container is any container that inherits from Sized, right? If so, then why doesn't my dummy example work?
import collections
class MySized:
def __len__():
pass
class MyMappingView(MySized):
pass
print(issubclass(MySized, collections.Sized)) # True
print(issubclass(MyMappingView, collections.MappingView)) # False