Python Object Creation: Understanding __new__ and Immutability
For developers moving beyond basic OOP, this course explains how to design robust custom classes by controlling object creation using the specialized __new__ method.
-
💬
مدرب ذكاء اصطناعي
اسأل عن أي درس واحصل على إجابة واضحة فورًا، في أي وقت. -
🕐
ابدأ في أي وقت
بلا جداول أو مواعيد نهائية — تعلّم بوتيرتك، وقتما يناسبك. -
🌐
بالعربية
الدروس والمهام والشهادة — كل ذلك بلغتك بالكامل.
حول هذه الدورة
Standard Python class creation works well for mutable objects, but when you need to extend built-in immutable types like strings or numbers, the standard approach fails. Mastering the object creation lifecycle is essential for building advanced, predictable data structures.
Upon completion, you will gain a deep understanding of Python’s object lifecycle, allowing you to reliably subclass immutable types like int, str, and tuple, creating powerful, predictable custom data structures.
What you'll learn:
* Understand the critical difference between the object creation method (__new__) and the initialization method (__init__)
* Apply __new__ correctly to subclass core immutable types such as float, str, and tuple
* Practice creating custom, type-safe immutable classes that behave like built-in types
* Learn how to handle object state and initialization arguments within the __new__ method
* Configure alternative constructors and factory methods for flexible class instantiation
* Apply modern Python type hints to ensure custom immutable classes are used safely throughout your codebase
The course begins with foundational concepts of object instantiation and the Python data model, moves through practical examples of subclassing built-ins, and concludes with exercises on designing robust, production-ready custom types. This course is ideal for Python developers who understand basic classes and inheritance but want to master advanced object lifecycle management and custom type creation. No prior experience with the __new__ method is required.
Start designing more powerful and predictable Python objects today.
ما الذي ستحصل عليه
-
📜
شهادة إتمام
أضفها إلى ملفك على LinkedIn -
💬
مدرّس AI شخصي
عالق في دورة؟ اسأل مدرّسك المدمج أي شيء، في أي وقت. -
🎧
النسخة الصوتية مضمَّنة
تعلَّم أثناء تنقُّلك — دون شاشة -
♾️
وصول مدى الحياة
عُد متى شئت، بلا انتهاء -
📱
الهاتف أو الكمبيوتر
يعمل في أي مكان وعلى أي جهاز -
💸
استرداد خلال 14 يومًا
دون أسئلة -
⚡
قصير ومركَّز
2 ساعة 54 دقيقة من المحتوى التطبيقي
المراجعات
لا توجد مراجعات بعد — كن أول من يشارك تجربته.
الأسئلة الشائعة
ما الذي أحتاجه لأخذ هذه الدورة؟ +
يكفي هاتف أو كمبيوتر متصل بالإنترنت. بدون تثبيتات أو أجهزة خاصة.
كيف يمكنني الدفع؟ +
بالبطاقة عبر Stripe. لا نخزن بيانات البطاقة — يتولى Stripe ذلك بأمان.
هل يمكنني استرداد المال؟ +
نعم — استرداد كامل خلال 14 يومًا، دون أسئلة.
إلى متى يستمر وصولي؟ +
إلى الأبد. بمجرد الشراء، الدورة لك تعود إليها متى شئت.
هل سأحصل على شهادة؟ +
نعم. عند الإتمام ستحصل على شهادة يمكنك إضافتها إلى ملفك في LinkedIn.
مصمَّم للعاملين في
التقنية
التصميم
المالية
التسويق
الرعاية الصحية
التعليم
الضيافة
التصنيع
×2
اشحن مرة واحدة وادفع النصف
أضف ₡46.000 واحصل على 200 رصيد، بحيث تكلف كل دورة حوالي ₡5.750. لا تنتهي صلاحية الأرصدة أبداً.
₡46.000
200 رصيد
₡5.750 / دورة
أفضل قيمة
₡120.000
550 رصيد
₡5.455 / دورة
₡230.000
1200 رصيد
₡4.792 / دورة
الرصيد يصلح لأي دورة ولا ينتهي.