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
If cfg is a ListConfig, cfg.append(node) does not deep copy the node (contrary to cfg[idx] = node).
This can cause several issues, including the following that raises a max recursion error:
(with a deecopy it would probably still fail because cfg would be deep-copied, but it wouldn't be a RecursionError)
Performance warning
Doing a deepcopy may have performance implications since append() is called when creating a new ListConfig. Verifying the impact on performance should be part of fixing this issue.
Describe the bug
If
cfg
is aListConfig
,cfg.append(node)
does not deep copy the node (contrary tocfg[idx] = node
).This can cause several issues, including the following that raises a max recursion error:
To Reproduce
See above
Expected behavior
Similar behavior to what happens with assigment:
Additional context
See related discussion in #599
The text was updated successfully, but these errors were encountered: