GitHub user aboudreault opened a pull request:
https://github.com/apache/tinkerpop/pull/551
Fix the serializers lookup to handle the type first, then the class
inheritance
A good example of the need for this fix is with these types:
datetime.date
datetime.datetime
Since a datetime is a subclass of a date and that a dict is unordered... it
might happen that the wrong serializer is selected. (since
isinstance(my_datetime_instance, datetime.date) == True)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/aboudreault/tinkerpop
fix-serializer-lookup-tp32
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/tinkerpop/pull/551.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #551
----
commit 1af9ba6fe24f5425d8f18ab4d34ea536fd91e77e
Author: Alan Boudreault <[email protected]>
Date: 2017-01-27T13:43:35Z
Fix the serializers lookup to handle the type first, then the class
inheritance.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---