You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I've found a bug but want to make sure I haven't overlooked something before opening a new issue. In my overloading of the operator[], I've got an assert to make sure the id being accessed isn't outside the bounds of the array. This works to stop the C++ code, but in Python, it gives no indication of the assert failure and still returns a value, though I'm not sure where this value is coming from. Below is a reproduction of this behavior.
The numbers printed for index 4-9 change on recompilation/rewriting of code, but I'm not sure what specifically they're accessing in memory to print out. Is this a bug I should open an issue for or have I overlooked something in the docs/my code that explains this behavior?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I think I've found a bug but want to make sure I haven't overlooked something before opening a new issue. In my overloading of the operator[], I've got an assert to make sure the id being accessed isn't outside the bounds of the array. This works to stop the C++ code, but in Python, it gives no indication of the assert failure and still returns a value, though I'm not sure where this value is coming from. Below is a reproduction of this behavior.
On the Python side, this code prints the following 10 values, despite the C++ assert failing for the last 6.
The numbers printed for index 4-9 change on recompilation/rewriting of code, but I'm not sure what specifically they're accessing in memory to print out. Is this a bug I should open an issue for or have I overlooked something in the docs/my code that explains this behavior?
Beta Was this translation helpful? Give feedback.
All reactions