23 ポイント 投稿者 xguru 2021-10-12 | 1件のコメント | WhatsAppで共有
  • builtins モジュールにある組み込みオブジェクトを一つずつ説明することで、Pythonを理解できるように構成された記事

  • L.E.G.B. スコープルールとは

  • dir(builtins)

→ 66個の組み込み Exception クラス

→ 5つの定数 : True, False, None, Ellipsis, NotImplemented

→ グローバル変数 : spec , loader , debug など

→ compile, exec, eval : コードの動作方式

→ globals and locals : すべてが保存される場所

→ input and print : 基本中の基本

→ str, bytes, int, bool, float and complex: 5つのプリミティブ

→ object: すべての基礎

→ type: クラスファクトリー

→ hash and id: equality の基本

→ dir and vars: すべては dictionary

→ hasattr, getattr, setattr and delattr: 属性ヘルパー

→ super: 継承の力

→ property, classmethod and staticmethod: メソッドデコレータ

→ list, tuple, dict, set and frozenset: コンテナ群

→ bytearray and memoryview: より良い Byte インターフェース

→ bin, hex, oct, ord, chr and ascii: 基本的な変換

→ format: 簡単なテキスト変換

→ any and all

→ abs, divmod, pow and round: 数学の基礎

→ isinstance and issubclass: ランタイム型チェック

→ callable and duck typing basics

→ sorted and reversed: シーケンスの変更

→ map and filter: Functional primitives

→ len, max, min and sum: Aggregate 関数群

→ iter and next: 高度な iteration

→ range, enumerate and zip: 便利な iteration

→ slice

→ breakpoint: 組み込みデバッグ

→ open: File I/O

→ repr: 開発者の利便性

→ help, exit and quit: site builtins

→ copyright, credits, license: もう一つの site builtins

1件のコメント

 
xguru 2021-10-12

Pythonを内部から理解させるのに説明がわかりやすくてすっきりしていて、とてもユニークな文章ですね。