Open pettijohn opened 6 years ago
It looks like you need to have implemented your own copy method for this to work: Two problems often exist with deep copy operations that don’t exist with shallow copy operations:
Recursive objects (compound objects that, directly or indirectly, contain a reference to themselves) may cause a recursive loop.
Because deep copy copies everything it may copy too much, such as data which is intended to be shared between copies.
The deepcopy() function avoids these problems by:
keeping a “memo” dictionary of objects already copied during the current copying pass; and
letting user-defined classes override the copying operation or the set of components copied.
copy just doesn't work on everything out of the box, you would need to implement copy for everything in the library.
I can't save an Ion payload to DynamoDB with Boto3. It looks like Boto3 makes a deep copy prior to saving, which throws.
Should an Ion struct be able to be deep copied? Stack below.