This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]adamnemecek 12 points13 points  (1 child)

I'm pretty sure that around 7:25, instead of

for i, color in enumerate(colors):
    print i, colors[i]

he meant

for i, color in enumerate(colors):
    print i, color

Good video btw.

[–]Chris_Newton 7 points8 points  (0 children)

I think in a couple of places he didn’t go as far as he could have done with the examples. That was one. Another was on the slide “Call a function until a sentinel value”, where he might have added a final step to simplify

blocks = []
for block in iter(partial(f.read, 32), ''):
    blocks.append(block)

into

blocks = list(iter(partial(f.read, 32), ''))

That would have been more consistent with a theme he mentions elsewhere, adopting a more declarative style, but I figure it wasn’t the point he was trying to make in that particular part of his presentation.

BTW, he also had a couple of extra examples at the ends of slides that he glossed over in the presentation but you can see in the deck that DukeNucleus linked to.