Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: utils
-
Labels:None
-
Story Points:0.5
-
Epic Link:
-
Sprint:Alert Production S17 - 3
-
Team:Alert Production
Description
In order to synthesis __iter__ from __getitem__ Python apparently requires exactly IndexError to be thrown, so that's what we should throw in these functions.
That will require rewriting the testPybind11.cc unit test in a way that has access to Python symbols (which should be done anyway).
There will likely be workaround code in afw/table/python/catalog.h that can be cleaned up after this change (I'll just catch OutOfRangeError there and re-throw as IndexError).
afw now has several more workarounds. Please grep for "
DM-9715" to catch them all.