Enum MergePrefer
Which value wins when the legacy deep merge (Merger) meets the same key on both sides and cannot merge the two values (neither is a dictionary or a growable list).
[Obsolete("The legacy Dict's deep merge: use Gym.Envs.Info.Update (Python's dict.update: the new value wins, one level deep). Removed in 2.0 with Gym.Legacy.")]
public enum MergePrefer
- Extension Methods
Fields
Old = 0Prefer the data in current dictionary over the data in the new dictionary merge is happening with.
New = 1Prefer the data in new dictionary merge is happening with over the data in the current dictionary.
Remarks
Obsolete with the legacy Dict (DR-56) and removed in 2.0. Its replacement,
Update(IEnumerable<KeyValuePair<string, object?>>), always lets the new value win (New), one level deep, as Python's
dict.update does. Footgun: two merge paths ignore it, see Merger.