11---
22jupytext :
3- cell_metadata_filter : all,-hidden,-heading_collapsed,-run_control,-trusted
4- notebook_metadata_filter : all, -jupytext.text_representation.jupytext_version, -jupytext.text_representation.format_version,
5- -language_info.version, -language_info.codemirror_mode.version, -language_info.codemirror_mode,
6- -language_info.file_extension, -language_info.mimetype, -toc
73 text_representation :
84 extension : .md
95 format_name : myst
@@ -53,10 +49,6 @@ nbhosting:
5349* ou lever l'exception AttributeError
5450
5551``` {code-cell} ipython3
56- ---
57- slideshow:
58- slide_type: slide
59- ---
6052class Echo:
6153 def __getattr__(self, attrname):
6254 if len(attrname) == 3:
@@ -71,10 +63,6 @@ class Echo:
7163```
7264
7365``` {code-cell} ipython3
74- ---
75- slideshow:
76- slide_type: slide
77- ---
7866echo = Echo()
7967echo.foo()
8068```
@@ -90,8 +78,6 @@ except AttributeError as e:
9078 print("OOPS", e)
9179```
9280
93- +++ {"slideshow": {"slide_type": "slide"}}
94-
9581# Deuxième partie
9682
9783+++
@@ -125,10 +111,6 @@ except AttributeError as e:
125111```
126112
127113``` {code-cell} ipython3
128- ---
129- slideshow:
130- slide_type: slide
131- ---
132114class BlacklistEcho(Echo):
133115 def __init__(self, blacklist):
134116 super().__init__()
@@ -140,10 +122,6 @@ class BlacklistEcho(Echo):
140122```
141123
142124``` {code-cell} ipython3
143- ---
144- slideshow:
145- slide_type: slide
146- ---
147125blacklist = [ 'six', 'two', 'four']
148126
149127echo2 = BlacklistEcho(blacklist)
0 commit comments