[docs] Bug in Functional Programming HOWTO

Sergey Skovorodkin ls.sergey at gmail.com
Tue Aug 14 12:16:09 CEST 2012


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


More information about the docs mailing list

AltStyle によって変換されたページ (->オリジナル) /