[issue665761] reduce() masks exception

Alexander Belopolsky report at bugs.python.org
Sat May 1 03:25:34 CEST 2010


Alexander Belopolsky <alexander.belopolsky at gmail.com> added the comment:

I am attaching a patch with unit tests that implements the "middle-ground approach" making map and reduce behave the way zip is now.

I my view this slightly preferable to the "all the way" approach of letting all exceptions to propagate up.  My reasoning is that out of the three functions, zip, reduce and map, zip is probably the most common and changing its behavior is more likely to affect somebody than a change to the other two.

----------
nosy: +Alexander.Belopolsky
Added file: http://bugs.python.org/file17156/issue665761.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue665761>
_______________________________________


More information about the Python-bugs-list mailing list