-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fixes GH-8152: add __serialise and __unserialise methods to DateInterval #8459
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
Fixes GH-8152: add __serialise and __unserialise methods to DateInterval #8459
Conversation
…serialization if set
…aint, and reorder fields
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the code style nit for tests, LGTM.
Might want an entry in UPGRADING clarifying the change in behaviour?
Well seems there are some GC issues on Mac, and segfault on FreeBSD |
@Girgias Looks OK now with that latest commit(s). I used |
This PR adds support for
__serialize
and__unserialize
to DateInterval.Unlike the changes to
DateTime
, there are some behavioural changes:next weekday
) no longer express as (fake) properties. But note that you couldn't do anything with these properties, and upon the original deserialisation, these were ignored (and not warned against). If present upon deserialisation, they will continue to just be ignored as to not break existing serialisation strings.date_string
), and with the flagfrom_string
set totrue
.DateInterval
objects