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
States currently handle mutable default values by deepcopying everything. Even with default_factory, the factory function gets called once and the result is deepcopied.
States currently handle mutable default values by deepcopying everything. Even with
default_factory
, the factory function gets called once and the result is deepcopied.This means tests like this pass:
when you might expect that to be the behavior.
This is acceptable for now, as the resulting behavior is what one would expect or desire.
If a default factory is supposed to be random, or expected to do anything more than return empty mutable objects, then this ticket will be necessary.
The text was updated successfully, but these errors were encountered: