-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
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
copy.deepcopy() with datetime objects fails with "TypeError: __init__() takes exactly 2 arguments (1 given)" #387
Comments
Sorry, I did this ticket a bit too hastily. Here is a reproducer:
It is when dealing with datetime objects. |
This only applies to python2. In python3, it uses the stdlib timezone objects. So the minimal timezone object ( |
Just to add a slightly more verbose description of this issue:
|
Thank you, you are much better at summarizing usefully the state of things :) As of right now, we have reverted pyyaml to older than 5.3. Should we implement those methods or do you plan on fixing it in pyyaml? |
This broke one of my transient dependencies, and pyyaml is a transient dep of yet another transient dep... I don't have resources to fix it right now so I also pyyaml to <5.3 on py2.7. But pyyaml is the proper place to fix this instead of pinning transient deps. |
If someone wants to submit a PR (extra credit if it has tests) I can get this out soon. |
@ingydotnet there you go (not from me) |
thanks |
Apparently since this commit: 96d65f3
The text was updated successfully, but these errors were encountered: