[Python-ideas] Map and filter should also convert StopIteration to RuntimeError
Ethan Furman
ethan at stoneleaf.us
Fri Dec 12 23:33:42 CET 2014
On 12/12/2014 02:11 PM, Oscar Benjamin wrote:
> On 12 December 2014 at 21:59, Chris Barker <chris.barker at noaa.gov> wrote:
>>
>> It is considered prone to hard to find and understand bugs -- which was the
>> motivation for the PEP.
>
> The same reasoning applies here. I had a bug like this and it was
> data-dependent, hard to reproduce, and there was no exception to hook
> a debugger onto or stack trace to give information.
And now it will raise an exception at the point where the error actually occurred.
Having gone through that experience I would have thought you would be more in favor of the change.
--
~Ethan~
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20141212/63bacf9b/attachment.sig>
More information about the Python-ideas
mailing list