Python collections, typing etc.
Was trying to code a “is this a sortable thing or not” thing, saw the documentation for collections, and it’s awesome: collections.abc — Abstract Base Classes for Containers — Python 3.11.3 documentation
The table of base classes has who inherits from whom (Set
from Collection
), which abstract methods it has (__contains__
) etc.
Definitely worth reading in full. As the rest of the very very readable Python docs.
Nel mezzo del deserto posso dire tutto quello che voglio.
comments powered by Disqus