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
Would it be acceptable to change the default value for retain_collection_types to True? This would reduce the likelihood of this issue to appear unexpectedly. It is not a full fix though.
Would it be ok to use tuple as default collection type, when retain_collection_types=False? I would expect this to completely resolve the issue.
As much as I love tuples (and immutable data in general), it seems risky to (essentially) auto-convert lists to tuples. I imagine there's too much code out there that relies on the Python-wide "default" of mutable container types. It would work fine for my use cases, though.
Activity
petergaultney commentedon May 5, 2021
I think retain=True makes a lot of sense.
As much as I love tuples (and immutable data in general), it seems risky to (essentially) auto-convert lists to tuples. I imagine there's too much code out there that relies on the Python-wide "default" of mutable container types. It would work fine for my use cases, though.