fbkarsdorp/python-course — pull request #2 by sgillies (2013-04-10 19:48:47+00:00)
Title: Advocating use of "with open(...) as f" for files

Dear Mr. Karsdorp,

Core Python developers are now pushing "with open(...) as f" as a
best practice and I've found it's something that's not too hard to
introduce to new programmers. It saves them from having to
remember to close files and introduces a concept (context managers)
that's going to be useful when they become more advanced.

I like this course very much! It's well written and has great Python style. I particularly like how you introduce enumerate() and zip() early. Your project also inspired me to try iPython Notebook on Python 3.3 :)

Yours,

Sean Gillies