[docs] [issue31575] Functional Programming HOWTO sub-optimal example for reduce

Raymond Hettinger report at bugs.python.org
Tue Sep 26 02:41:01 EDT 2017


Raymond Hettinger added the comment:

I think the existing code conveys the author's message better than the proposed revision.  The example isn't about efficiency; rather, it is about comparing several alternative formulations with this one being the weakest of the lost.  For emphasizing that point and not getting lost in a made-up example, the a[1] and b[1] style is more effective.

That's for the suggestion but I don't think it is a win.

----------
nosy: +rhettinger
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31575>
_______________________________________


More information about the docs mailing list