Implementing Custom Sequences and Mappings in Python
Master the Python Data Model to create robust, reusable container classes that behave exactly like built-in lists and dictionaries.
-
💬
AIインストラクター
どのレッスンでも質問すれば、いつでもすぐに分かりやすい答えが返ってきます。 -
🕐
いつでも開始
スケジュールも締め切りもなし。自分のペースで、好きなときに学べます。 -
🌐
日本語で
レッスン、課題、修了証まで、すべてあなたの言語で。
このコースについて
Standard Python lists and dictionaries are powerful, but sometimes you need a specialized container that enforces unique rules, provides validation, or integrates seamlessly with external data sources. This course teaches you how to leverage Python's powerful Data Model (the dunder methods) to design your own custom containers that feel completely native, supporting indexing, slicing, iteration, and the len() function out of the box.
What you'll learn:
* Understand the fundamental concepts of Python's Data Model and special methods (dunder methods).
* Implement all necessary methods, including __len__ and __getitem__, to build custom sequence types.
* Apply Abstract Base Classes (ABCs) from collections.abc to ensure custom containers adhere to standard Python protocols.
* Design custom mapping classes that support key-value assignment, deletion, and iteration like standard dictionaries.
* Practice creating immutable containers and specialized, fixed-size data structures for enhanced data integrity.
* Configure custom container classes to support iteration and generator patterns efficiently.
We begin by reviewing core object-oriented concepts and the role of special methods in defining object behavior. We then move step-by-step through implementing sequence protocols, focusing on indexing, slicing, and iteration. Finally, we tackle the complexities of mapping protocols (dictionary-like behavior) and how to use Python's Abstract Base Classes to validate your designs.
This course is designed for beginner and intermediate Python programmers who understand basic classes and want to deepen their knowledge of Python's object model and create highly reusable, native-feeling code. No advanced knowledge of data structures is required.
Start reading today and transform how you handle complex data modeling in Python.
得られるもの
-
📜
修了証
LinkedInプロフィールに追加 -
💬
パーソナルAIチューター
レッスンで詰まった?組み込みチューターにいつでも何でも聞いてみよう。 -
🎧
音声版付き
画面なしでもどこでも学べる -
♾️
無期限アクセス
いつでも再開可能、有効期限なし -
📱
スマホでもPCでも
どこでもどんな端末でも -
💸
14日返金保証
理由を聞きません -
⚡
短く要点だけ
2時間54分の実践的な内容
レビュー
まだレビューはありません — 最初の体験を共有しましょう。
よくある質問
このコースを受けるには何が必要ですか? +
インターネットに接続したスマホかパソコンだけ。インストールも特別な機材も不要です。
支払い方法は? +
Stripe経由のカードで。カード情報は当社では保存せず、Stripeが安全に取り扱います。
返金できますか? +
はい — 14日以内なら理由を問わず全額返金。
いつまでアクセスできますか? +
ずっと。購入後はあなたのもの。いつでも見返せます。
修了証はもらえますか? +
はい。修了するとLinkedInプロフィールに追加できる修了証を受け取れます。
こんな分野の方に
テック
デザイン
金融
マーケティング
医療
教育
ホスピタリティ
製造業
×2
一度のチャージで半額
36 000 ֏ を追加 → 200 クレジット獲得、コースあたりの価格は約 4 500 ֏ になります。クレジットの有効期限はありません。
36 000 ֏
200 クレジット
4 500 ֏ /コース
最もお得
90 000 ֏
550 クレジット
4 091 ֏ /コース
180 000 ֏
1200 クレジット
3 750 ֏ /コース
クレジットはどのコースにも使え、無期限です。