Closed mattagape closed 5 years ago
Intro section:
Iterators:
range
s from the starta.___next__()
, where I think next(a)
is better. I don't know if we need to go into the magics of __next__
, __iter__
Defining Our Own Iterable:
next
in this section should be __next__
(but maybe not all?)A shortcut to iterables: the __iter__ method:
webcolors
from Travis installation?Generators:
Context managers:
example.yaml
file (if we really need it - could just write instead).Decorators:
next(a)
We see
iter()
,__iter__()
,next
and__next__()
. This is inconsistent. Is this due to notebook mark-up errors?It says
# See future NumPy lecture for using reshape
, but was that not in a previous lecture?In A shortcut to iterables: the iter method section, where is
__iter__()
called? I don't get this.Typo in "and return an something iterable." (an)
The code says "
@repeater(3)
". Can we do this because we earlier defined a repeater() function? EDIT: ah I see further down this is indeed the case. But we should make this clear.Typo
def assert_examplar
should saydef assert_exemplar
On the same piece of code it would help if we could see an example of it being used to make things clearer.
In
def test_greeter()
, there is a superfluous bracket in) as fixtures_file:
I don't really understand this code. And what does
**fixture
mean?In Negative test contexts managers section, we should show the output seen by running the code straight after "We have seen this:"
My head was spinning by the time I got to
def homemade_raises_decorator
. I'm not sure I understand it. Then again, maybe people just need to know how to use these things without understanding all the details??!!General comment: there are many new concepts to be understood in this page.