[C++-sig] [patch] Boost.Python STL input iterator does not propagate exceptions
Eric Niebler
eric at boost-consulting.com
Thu Jan 3 21:39:02 CET 2008
Andreas Klöckner wrote:
>
> The attached patch fixes an exception propagation issue in the STL input
> iterator in Boost.Python. The problem is as follows: PyIter_Next may return 0
> for two reasons:
>
> - No more iterants left.
> - An exception was caught.
>
> The current implementation interprets the latter as the former. A simple fix
> (throw error_already_set if appropriate) is attached.
>
> I'd appreciate it if you could commit this. If there are any issues, please
> let me know and I'll do my best to fix them.
Thanks, please provide a test case.
--
Eric Niebler
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list