john-science / python_for_scientists

Python Open Courseware for Scientists and Engineers
GNU General Public License v3.0
68 stars 40 forks source link

map/reduce/filter in Python v3 #40

Closed john-science closed 8 years ago

john-science commented 8 years ago

Ammend the map/reduce/filter lecture to allows for the differences in Python v3.

In Python v3, these return iterators, not lists. And reduce is gone.

john-science commented 8 years ago

This was taken care of, in the yield lecture.