00:00/00:00
Lecture 31 of 38
Solution Singleton
Course Content
0 / 38 completedSection 1: Introduction3 videos
What you should know
1m
Using Codespaces
1m
Advanced object oriented programming (OOP)
2m
Section 2: Attribute Access8 videos
Deconstructing attribute access
5m
Programmatic attribute access
2m
Using properties
3m
Reducing memory with slots
3m
Descriptors
5m
Name mangling
4m
Challenge Colors
1m
Solution Colors
1m
Section 3: Methods7 videos
Using class methods
3m
Using static methods
2m
Mixin classes
3m
Abstract base classes
6m
Defining interfaces with typing.Protocol
3m
Challenge Event from JSON
1m
Solution Event from JSON
2m
Section 4: Special Methods7 videos
String representations
3m
Sequences
2m
Mappings
4m
Numbers
3m
Callable
3m
Solution Database-backed dictionary
2m
Challenge Database-backed dictionary
2m
Section 5: Metaclasses6 videos
What are metaclasses
6m
Class creation
3m
Attribute lookup
1m
Instance creation
3m
Challenge Singleton
1m
Solution Singleton
1mNow Playing
Section 6: Class Creation Utilities6 videos
Class decorators
3m
dataclass()
3m
namedtuple()
3m
Challenge VM class
1m
Freezing
3m
Solution VM class
1m
Section 7: Conclusion1 videos
Next steps
1m