On Mon, 17 Mar 2008 14:36:29 -0500, "J. Clifford Dyer" <[EMAIL PROTECTED]> wrote:
>Note to speakers: do not say > > x, y = tee(foo) > >say > > from itertools import tee > x, y = tee(foo) > >or better (for pedagogical purposes) > > import itertools > x, y = itertools.tee(foo) > I was scratching my head over tee() also, in the session where I heard it. Were you in the "iterators II" session also? I've used itertools a bit, but never tee(), and so when I thumbed through my copy of PER I thought, ahh, I've skimmed over but never registered the importance of that little bugger before... That was one of the more interesting sessions to me. John -- http://mail.python.org/mailman/listinfo/python-list