Github user leifurhauks commented on a diff in the pull request:
https://github.com/apache/tinkerpop/pull/418#discussion_r79199796
--- Diff:
gremlin-python/src/main/jython/gremlin_python/structure/io/graphson.py ---
@@ -181,7 +181,7 @@ class NumberSerializer(GraphSONSerializer):
def _dictify(self, number):
if isinstance(number, bool): # python thinks that 0/1 integers
are booleans
return number
- elif isinstance(number, long):
+ elif isinstance(number, long) or (number > 2147483647): # in
python all numbers are int unless specified otherwise
--- End diff --
Maybe the absolute value of the integer should be checked here.
---
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.
---