"Jason Orendorff" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | PEP 3100 still isn't clear on the fate of these guys, except that | reduce() is gone. | | How about moving all three to the functools module instead?
The current reduce is broken due to being a mashing together of two versions of the function (one 2 params, the other 3), with the 3-param one having an ill-formed signature (inconsistent parameter order) to allow the mashing that should not have been done. (The ill-formed signature is hard to remember and is responsible for part of some peoples' dislike of reduce.) I would like a proper 3-param version in functools, but have not writen the exact proposal yet since library changes have been put off. I am also thinking about an ireduce, but need to make sure it cannot be easily done with current itertools. Terry Jan Reedy _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com