Course Information
Course Overview
Magic Methods in Python Classes
Python Data Model
Python has a set of protocols that the language internally adhere to which provides the functionality for features such as iteration, context manager behavior, string representation of an object, and many other things. When you create custom classes in Python and make use of these protocols then you can create custom behavior in the context of iterations, types, comparison of objects, operator overloading, and much more. Knowing about these will help level up your Python skills. If you are ready to progress forward in your Python prowess, then join us to learn more about the Python data model.
Course Format
• Binge-worthy TV shows! Watch comprehensive, in-depth episodes that use a talk show-like format to keep you engaged while learning.
• You can pick and choose episodes or you can watch as a complete series.
• A little humor, anecdotes, and real-world examples.
Other Courses
Ready to a DevPro? Get more DevProTV training with a variety of topics. Join Justin and DevProTV to level up your programming prowess!
Updates and Versions
The programming world updates at a break neck pace. As a result, there are times that certain tools, editors, libraries have changed. While syntax or names may change, the foundations remain the same. Though we hope to keep things updated, there may be time before that can occur. I recommend seeing if you can translate between changes and if all fails, ask questions!
Course Content
- 8 section(s)
- 35 lecture(s)
- Section 1 Basics
- Section 2 Containers
- Section 3 Comparables
- Section 4 Numbers
- Section 5 Attributes
- Section 6 Functions
- Section 7 Context Managers
- Section 8 Serialization
What You’ll Learn
- Use the double underscore or "magic" methods to shape the behavior of custom classes.
- Overload operators in Python.
- Create custom iterables using classes.
- Create custom context manager classes.
Skills covered in this course
Reviews
-
DDaniel Tomaszuk
It uses Python3.6, but all the parts are still relevant (I've used Python3.12). I would love to see some more descriptors action and metaclasses. Overall, very nicely done!
-
MMaddy999
pretty good explanation with examples.
-
RRob Walt
One of the great course I have found when you want to take your python skills to the next level.
-
AAdiv Abramson
The presentation is informative, humorous and engaging. Observing coding in real time, as opposed to pre-written code pasted into the editor, adds a dimension of humanity to the lesson and helps the student to realize that even very experienced professional developers such as Justin can make mistakes, although in this case very minor ones such as typos. Having completed a Python OOP course in 2018 and currently in the home stretch of another Python Master Class, I didn't have too much difficulty following the first lesson. I look forward to deepening my understanding of this marvelous programming language and hope someday to have attained sufficient proficiency, competence and experience to develop automation applications in Python professionally. This course will certainly help me reach that objective! Thank you so much.