Title: Theory / Unimportant / CS / Programming / Python / Lib / built-in types / abc
Tags: computer_to_instruction

Name: An Abstract Base Class
Definition: such that isinstance() can be applied to class inheriting it, to get abstract property about a concrete class
Page: https://docs.python.org/3/library/typing.html
Context: Python
Definition2: such that each inheriting class must implement some methods satisfying some hypothesis
Conjdef: A class
Abbreviation: abc

Instruction: ABC
Page: https://docs.python.org/3/library/typing.html
Language: Python
Returns: A helper class that has ABCMeta as its metaclass. With this class, an abstract base class can be created by simply deriving from it

Name: Mixin method
Definition: A method implemented by calling abstract method.
Page: https://docs.python.org/3/library/collections.abc.html#collections-abstract-base-classes
Context: Python
Intuition: A method in an abstract class which don't have to be reimplemented by inheriting classes

Function: __contains__
Name: Container
Function2: __iter__ (recommanded)
over key for map, and value otherwise
Context: Python ABC

Function: __hash__
Name: Hashable

Function: __iter__
Name: Iterable

Function: __next__
Name: Iterator
Extends: Iterable

Function: __reversed__
Name: Reversible
Extends: Iterable

Function: send,throw
Name: Generator
Extends: Iterator

Function: __len__
Name: Sized

Function: __call__: method called wthen the object is called as a function
Name: Callable

Name: Collection
Extends: Sized,Iterable,Container

Function: __getitem__
Name: Sequence
Function2: __len__
Extends: Reversible,Collection

Function: append, extend, insert
Name: MutableSequence
Function2: count, index
Extends: Sequence
Function3: pop, remove
Function4: reverse, sort

Name: ByteString
Extends: Sequence

Name: Set
Extends: Collection

Function: add
Name: MutableSet
Function2: discard
Extends: Set

Name: Mapping
Extends: Collection

Function: __delitem__
Page: https://docs.python.org/3/reference/datamodel.html#implementing-descriptors
Name: MutableMapping
Function2: _setitem__
Chapter: 3
Extends: Mapping
Section: 3.7
Function3: __getitem__

Name: MappingView
Extends: Sized

Name: ItemsView
Extends: MappingView,Set

Name: KeysView
Extends: MappingView,Set

Name: ValuesView
Extends: MappingView,Collection

Function: __aiter__
Name: AsyncIterable

Function: __anext__ an awaitable resulting in a next value of the iterator. Raise a StopAsyncIteration error when the iteration is over.
Name: AsyncIterator
Extends: AsyncIterable

Function: asend
Name: AsyncGenerator
Function2: athrow
Extends: AsyncIterator