[docs] Bug in functools.reduce

INADA Naoki songofacandy at gmail.com
Mon Jun 11 18:18:00 EDT 2018

It's not a bug.

Since 0 is falsy value, `0 or 2` is 2, not 0.
You need to use `prev if prev < curr else curr` instead of `cond and A or
B` hack.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20180612/d3f064e0/attachment.html>

More information about the docs mailing list