Pycon disappointment
John DeRosa
stugots at qwest.net
Tue Mar 18 12:04:40 EDT 2008
On Mon, 17 Mar 2008 14:36:29 -0500, "J. Clifford Dyer"
<jcd at sdf.lonestar.org> 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
More information about the Python-list
mailing list