From e31e469deba159d2921ad1af7bc7979fe259347b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20Ovr=C3=A9n?= Date: Tue, 16 Jan 2018 09:44:44 +0100 Subject: [PATCH] Update docs on std::out_of_range exception mapping Docs currently says that `std::out_of_range` is mapped to `ValueError`, but source says `IndexError`. Given the documentation for `std::out_of_range` it seems like `IndexError` is the correct one, so the docs should be updated. --- docs/advanced/exceptions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/advanced/exceptions.rst b/docs/advanced/exceptions.rst index 3122c3721d..313af982b3 100644 --- a/docs/advanced/exceptions.rst +++ b/docs/advanced/exceptions.rst @@ -24,7 +24,7 @@ exceptions: +--------------------------------------+------------------------------+ | :class:`std::length_error` | ``ValueError`` | +--------------------------------------+------------------------------+ -| :class:`std::out_of_range` | ``ValueError`` | +| :class:`std::out_of_range` | ``IndexError`` | +--------------------------------------+------------------------------+ | :class:`std::range_error` | ``ValueError`` | +--------------------------------------+------------------------------+