@@ -10,6 +10,20 @@ in the course so far.
1010Decorators
1111----------
1212
13+ .. dropdown :: Video: decorators.
14+
15+ .. container :: vimeo
16+
17+ .. raw :: html
18+
19+ <iframe src =" https://player.vimeo.com/video/526946976"
20+ frameborder =" 0" allow =" autoplay; fullscreen"
21+ allowfullscreen ></iframe >
22+
23+ Imperial students can also `watch this video on Panopto
24+ <https://imperial.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=f1d61410-4200-42e5-92c4-acf2011de8ab> `__.
25+
26+
1327In :numref: `Week %s <trees >` we encountered the
1428:func: `functools.singledispatch ` decorator, which turns a function into a
1529:term: `single dispatch function `. More generally, a decorator is a function
@@ -193,6 +207,19 @@ ones. We will survey just a few here:
193207Abstract base classes
194208---------------------
195209
210+ .. dropdown :: Video: Abstract base classes.
211+
212+ .. container :: vimeo
213+
214+ .. raw :: html
215+
216+ <iframe src =" https://player.vimeo.com/video/526947635"
217+ frameborder =" 0" allow =" autoplay; fullscreen"
218+ allowfullscreen ></iframe >
219+
220+ Imperial students can also `watch this video on Panopto
221+ <https://imperial.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=f4678a69-731c-45fe-bdbf-acf2011de880> `__.
222+
196223We have now on several occasions encountered classes which are not designed to
197224be instantiated themselves, but merely serve as parent classes to concrete
198225classes which are intended to be instantiated. Examples of these classes
@@ -363,6 +390,19 @@ second use of abstract base classes comes into play.
363390Virtual subclasses
364391~~~~~~~~~~~~~~~~~~
365392
393+ .. dropdown :: Video: virtual subclasses.
394+
395+ .. container :: vimeo
396+
397+ .. raw :: html
398+
399+ <iframe src =" https://player.vimeo.com/video/526947427"
400+ frameborder =" 0" allow =" autoplay; fullscreen"
401+ allowfullscreen ></iframe >
402+
403+ Imperial students can also `watch this video on Panopto
404+ <https://imperial.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=4114bb1d-cc31-4cfc-81a6-acf2011de8d6> `__.
405+
366406We learned in :numref: `Week %s <objects >` that we can determine if a type is a
367407number by checking if it is an instance of :class: `numbers.Number `. This is a
368408slightly different usage of abstract base classes. Rather than providing part
0 commit comments