目的
(「シーケンス」の位置づけがよくわからなかったので)
以下のPythonのリファレンスに記載されているData model(データモデル)の標準型の階層を表にする。
https://docs.python.org/3/reference/datamodel.html
https://docs.python.org/ja/3/reference/datamodel.html
The standard type hierarchy(標準型の階層)
| numbers.Number |
||
| numbers.Integral 整数 |
||
| Integers (int) 整数 |
||
| Booleans (bool) ブール値 |
||
| numbers.Real (float) 実数 |
||
| numbers.Complex (complex) |
||
| Sequences シーケンス型 |
||
| Immutable sequences 変更不能なシーケンス |
||
| Strings 文字列型 |
||
| Tuples タプル型 |
||
| Bytes |
||
| Mutable sequences 変更可能なシーケンス型 |
||
| Lists リスト型 |
||
| Byte Arrays バイト配列 |
||
| Set types 集合型 |
||
| Sets 集合型 |
||
| Frozen sets |
||
| Mappings マッピング型 |
||
| Dictionaries 辞書型 |
雑談
上記のnumbers.Integralのintegralが整数(整数の)という意味があることを知りませんでした。