Advanced Python objects
Buy now
Learn more
01 Welcome
Section 1: Advanced methods
Section 1 -- Advanced methods.ipynb
02 Intro to magic methods
03 Equality with __eq__
04 Other comparison operators
05 total_ordering
06 The "operator" module
07 Exercises 1
exercises-1.txt
08 Exercise 1 solutions
09 __add__
10 reversing things with __radd__
11 __iadd__
12 Exercises 2
exercises-2.txt
13 Exercise 2 solutions
14 __getitem__
15 operator.itemgetter
16 __contains__
17 __int__ and __float__
18 __bool__
19 __format__
20 Exercises 3
exercises-3.txt
21 Exercise 3 solutions
22 __del__
23 __getattr__
24 __getattr__ vs getattr
25 __setattr__
26 __slots__
27 __getattribute__
28 Exercises 4
exercises-4.txt
29 Exercise solutions 4
30 Static methods
31 Class methods
Section 2: Inheritance
Section 2 -- Inheritance.ipynb
32 Inheritance review
33 Using super
34 Three kinds of inheritance
35 Exercises 5
exercises-5.txt
36 Exercise 5 solutions
37 MRO
38 Multiple inheritance
39 __bases__
40 Mixins
41 Name mangling
42 Exercises 6
exercises-6.txt
43 Exercise solutions
44 Abstract base classes, part 1
45 Abstract base classes, part 2
46 Python's object hierarchy
Section 3: Context managers
Section 3 -- Context managers.ipynb
47 Intro to context managers
48 How context managers work
49 A simple context manager
50 TempStdout
51 Deterministic random numbers
52 Multiple context managers
53 contextlib
54 Exercises 7
exercises-7.txt
55 Exercise solutions 7
Section 4: Properties and descriptors
Section 4 -- Properties and descriptors.ipynb
56 Intro to properties
57 Thermostat
58 Property getters
59 Property setters
60 Excercises 8
61 Excercise 8 solutions
62 Intro to descriptors
63 Instance-specific descriptor values
64 Weak refs and descriptors
65 Descriptors, functions, and methods
66 Exercises 9
exercises-9.txt
67 Exercise solutions 9
Section 5: Advanced topics
Section 5 -- Advanced topics.ipynb
68 Intro to advanced topics
69 Defining __new__
70 Using __new__
71 Creating classes with type
72 Metaclasses
73 Exercises 10
exercises-10.txt
74 Exercise solutions 10
75 Conclusion
Products
Course
Section
Lesson
65 Descriptors, functions, and methods
65 Descriptors, functions, and methods
Advanced Python objects
Buy now
Learn more
01 Welcome
Section 1: Advanced methods
Section 1 -- Advanced methods.ipynb
02 Intro to magic methods
03 Equality with __eq__
04 Other comparison operators
05 total_ordering
06 The "operator" module
07 Exercises 1
exercises-1.txt
08 Exercise 1 solutions
09 __add__
10 reversing things with __radd__
11 __iadd__
12 Exercises 2
exercises-2.txt
13 Exercise 2 solutions
14 __getitem__
15 operator.itemgetter
16 __contains__
17 __int__ and __float__
18 __bool__
19 __format__
20 Exercises 3
exercises-3.txt
21 Exercise 3 solutions
22 __del__
23 __getattr__
24 __getattr__ vs getattr
25 __setattr__
26 __slots__
27 __getattribute__
28 Exercises 4
exercises-4.txt
29 Exercise solutions 4
30 Static methods
31 Class methods
Section 2: Inheritance
Section 2 -- Inheritance.ipynb
32 Inheritance review
33 Using super
34 Three kinds of inheritance
35 Exercises 5
exercises-5.txt
36 Exercise 5 solutions
37 MRO
38 Multiple inheritance
39 __bases__
40 Mixins
41 Name mangling
42 Exercises 6
exercises-6.txt
43 Exercise solutions
44 Abstract base classes, part 1
45 Abstract base classes, part 2
46 Python's object hierarchy
Section 3: Context managers
Section 3 -- Context managers.ipynb
47 Intro to context managers
48 How context managers work
49 A simple context manager
50 TempStdout
51 Deterministic random numbers
52 Multiple context managers
53 contextlib
54 Exercises 7
exercises-7.txt
55 Exercise solutions 7
Section 4: Properties and descriptors
Section 4 -- Properties and descriptors.ipynb
56 Intro to properties
57 Thermostat
58 Property getters
59 Property setters
60 Excercises 8
61 Excercise 8 solutions
62 Intro to descriptors
63 Instance-specific descriptor values
64 Weak refs and descriptors
65 Descriptors, functions, and methods
66 Exercises 9
exercises-9.txt
67 Exercise solutions 9
Section 5: Advanced topics
Section 5 -- Advanced topics.ipynb
68 Intro to advanced topics
69 Defining __new__
70 Using __new__
71 Creating classes with type
72 Metaclasses
73 Exercises 10
exercises-10.txt
74 Exercise solutions 10
75 Conclusion
Lesson unavailable
Please
login to your account
or
buy the course
.