We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The resulting dict from parsing a datetime with a timezone cannot be deep-copied using the stdlib function copy.deepcopy().
copy.deepcopy()
import copy import toml o = toml.loads("dob = 1979-05-27T07:32:00-08:00") copy.deepcopy(o)
TypeError: __init__() missing 1 required positional argument: 'toml_offset'
The dict is copied and the timezone of the copy has the same offset but it is a different object.
The text was updated successfully, but these errors were encountered:
I'm running into the same issue too.
Sorry, something went wrong.
I see you have a commit in your own fork @jpsca
Yes, and I made a PR with the fix: #309
16a6441
No branches or pull requests
The resulting dict from parsing a datetime with a timezone cannot be deep-copied using
the stdlib function
copy.deepcopy()
.Example
What happens now
What should happen
The dict is copied and the timezone of the copy has the same offset but it is a different object.
The text was updated successfully, but these errors were encountered: