Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Python Data Model
  • Table Of Contents Toc
  • Feedback & Rating feedback
Python Data Model

Python Data Model

By : ACI Learning, Justin Dennison, Daniel Lowrie, Mike Rodrick
close
close
Python Data Model

Python Data Model

By: ACI Learning, Justin Dennison, Daniel Lowrie, Mike Rodrick

Overview of this book

Delve into Python's internal protocols and data models to unlock advanced programming capabilities. This comprehensive course, led by expert instructors Justin and Mike, starts with foundational concepts like creating and initializing instances and progresses to complex topics such as custom object representation and deletion methods. You'll explore Python's __str__ and __repr__ methods to craft custom string outputs and master the __format__ and __bytes__ methods to enhance object presentation. As you advance, you'll learn to implement iterable objects and dictionary-like behaviors through methods like __iter__, __getitem__, __setitem__, and __delitem__. You'll gain expertise in boolean representation, equality and inequality operations, leveraging hash functions, and managing object slots. The course's numeric section covers operator overloading for arithmetic and bitwise operations, extending Python's numeric capabilities to custom objects. Finally, explore advanced topics like attribute management, custom descriptors, making objects callable, context management, and serialization. By the end of this course, you'll be proficient in Python's data model protocols, enabling you to write more efficient, readable, and powerful Python code. Join us to elevate your Python programming skills to a professional level.
Table of Contents (8 chapters)
close
close
You're currently viewing a free sample. Access the full title and Packt library for free now with a free trial.
Chapter: 5
Attributes
Icon This video is locked
Icon
Icon
0:00
2.0x
1.5x
1.25x
1.0x
0.5x
caption settings
caption off
Icon Icon
ShowHide Transcripts Icon
Visually different images
CONTINUE WATCHING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Python Data Model
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon