1. map vs. iter

    What's the difference between these?

    >>> zipped = zip(iter1, iter2)
    >>> mapped = map(None, iter1, iter2)
    

    The answer turns out to be depend on whether iter1 and iter2 are the same length. Pretty subtle: zipped is truncated to the length of the shortest of (iter1, iter2). mapped is the same length as …

  2. pdbpp rocks!

    A coworker (hi Will) just introduced me to pdbpp.

    As a longtime pdb user, I must say this is SOOO GOOD. Two features alone are worth it: syntax highlighting, and the ll command which prints the entire function around the current line.

    One wrinkle is that at work we still …

Page 3 / 4