Skip to content

Commit 2876b2f

Browse files
committed
Now with videos.
1 parent 6c3fdb9 commit 2876b2f

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

doc/source/11_further_object-oriented_features.rst

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,20 @@ in the course so far.
1010
Decorators
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+
1327
In :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:
193207
Abstract 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+
196223
We have now on several occasions encountered classes which are not designed to
197224
be instantiated themselves, but merely serve as parent classes to concrete
198225
classes which are intended to be instantiated. Examples of these classes
@@ -363,6 +390,19 @@ second use of abstract base classes comes into play.
363390
Virtual 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+
366406
We learned in :numref:`Week %s <objects>` that we can determine if a type is a
367407
number by checking if it is an instance of :class:`numbers.Number`. This is a
368408
slightly different usage of abstract base classes. Rather than providing part

0 commit comments

Comments
 (0)