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
Describe the bug
Equals methods of gym.spaces.Tuple does state that two Space instances do not equal if they contain the same Space but instance a was initialized using a list of subspaces and b using a tuple of instances.
opinion: This is a valid bug, and I think suggestion #1 makes most sense. Internally, gym.spaces.Tuple already performs promotion to tuples (See here) to account for the very issue that this issue raises (passing a list instead of a tuple). Functionally, this class should behave as a Tuple, so having an internal list representation is flawed, and should be converted to a tuple.
The fix is straightforward, have a PR on standby pending no disagreements with the above
Describe the bug
Equals methods of
gym.spaces.Tuple
does state that two Space instances do not equal if they contain the same Space but instance a was initialized using a list of subspaces and b using a tuple of instances.Suggestion:
__init__
__init__
__eq__
Code example
System Info
Describe the characteristic of your environment:
pip install gym==0.15.3
The text was updated successfully, but these errors were encountered: