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 am wondering if it is possible to use a random value as a list index inside a constraint. It does not seem to work as I expect. Here is a minimal example, which produce the following error: TypeError: list indices must be integers or slices, not rand_uint32_t
@felixdube, interestingly enough, your workaround is more or less exactly what would happen "under the hood" to implement the self.b < self.c[self.a] constraint.
Any feedback on how common you see this case to be in your work? If it's common (ie a workaround will be a real pain), that certainly will impact the priority of addressing it sooner vs later.
I am wondering if it is possible to use a random value as a list index inside a constraint. It does not seem to work as I expect. Here is a minimal example, which produce the following error:
TypeError: list indices must be integers or slices, not rand_uint32_t
I have found a workaround, but it might not be very efficient depending on the size of the list.
The text was updated successfully, but these errors were encountered: