Bug in Functional Programming HOWTO

Hi, http://docs.python.org/howto/functional.html#iterators
You’ll run into obvious problems if the iterator is infinite; max(), min(), and "not in" will never return, and if the element X never appears in the stream, the "in" operator won’t return either.
"not in" returns False if the element X appears in the stream, so I think it's better to say
max() and min() will never return, and if the element X never appears in the stream, the "in" and "not in" operators won’t return either.
-- Sergey Skovorodkin

Hello Sergey, On Tue, Aug 14, 2012 at 12:16 PM, Sergey Skovorodkin <ls.sergey@gmail.com> wrote:
Thanks - i've fixed it in all the active branches. Regards, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi

Hello Sergey, On Tue, Aug 14, 2012 at 12:16 PM, Sergey Skovorodkin <ls.sergey@gmail.com> wrote:
Thanks - i've fixed it in all the active branches. Regards, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi
participants (2)
-
Sandro Tosi
-
Sergey Skovorodkin