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.
-
💬
مدرب ذكاء اصطناعي
اسأل عن أي درس واحصل على إجابة واضحة فورًا، في أي وقت. -
🕐
ابدأ في أي وقت
بلا جداول أو مواعيد نهائية — تعلّم بوتيرتك، وقتما يناسبك. -
🌐
بالعربية
الدروس والمهام والشهادة — كل ذلك بلغتك بالكامل.
حول هذه الدورة
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 شخصي
عالق في دورة؟ اسأل مدرّسك المدمج أي شيء، في أي وقت. -
🎧
النسخة الصوتية مضمَّنة
تعلَّم أثناء تنقُّلك — دون شاشة -
♾️
وصول مدى الحياة
عُد متى شئت، بلا انتهاء -
📱
الهاتف أو الكمبيوتر
يعمل في أي مكان وعلى أي جهاز -
💸
استرداد خلال 14 يومًا
دون أسئلة -
⚡
قصير ومركَّز
2 ساعة 54 دقيقة من المحتوى التطبيقي
المراجعات
لا توجد مراجعات بعد — كن أول من يشارك تجربته.
الأسئلة الشائعة
ما الذي أحتاجه لأخذ هذه الدورة؟ +
يكفي هاتف أو كمبيوتر متصل بالإنترنت. بدون تثبيتات أو أجهزة خاصة.
كيف يمكنني الدفع؟ +
بالبطاقة عبر Stripe. لا نخزن بيانات البطاقة — يتولى Stripe ذلك بأمان.
هل يمكنني استرداد المال؟ +
نعم — استرداد كامل خلال 14 يومًا، دون أسئلة.
إلى متى يستمر وصولي؟ +
إلى الأبد. بمجرد الشراء، الدورة لك تعود إليها متى شئت.
هل سأحصل على شهادة؟ +
نعم. عند الإتمام ستحصل على شهادة يمكنك إضافتها إلى ملفك في LinkedIn.
مصمَّم للعاملين في
التقنية
التصميم
المالية
التسويق
الرعاية الصحية
التعليم
الضيافة
التصنيع
×2
اشحن مرة واحدة وادفع النصف
أضف SR 380 واحصل على 200 رصيد، بحيث تكلف كل دورة حوالي SR 47.50. لا تنتهي صلاحية الأرصدة أبداً.
SR 380
200 رصيد
SR 47.50 / دورة
أفضل قيمة
SR 950
550 رصيد
SR 43.18 / دورة
SR 1,900
1200 رصيد
SR 39.58 / دورة
الرصيد يصلح لأي دورة ولا ينتهي.