[
https://issues.apache.org/jira/browse/TINKERPOP-1576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15709666#comment-15709666
]
ASF GitHub Bot commented on TINKERPOP-1576:
-------------------------------------------
GitHub user FlorianHockmann opened a pull request:
https://github.com/apache/tinkerpop/pull/509
TINKERPOP-1576 gremlin-python calls non-existent methods
https://issues.apache.org/jira/browse/TINKERPOP-1576
This removes the methods `__.__()` and `__.start()` from gremlin-python as
they called the respective methods on `GraphTraversal` which doesn't have those
methods.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/FlorianHockmann/tinkerpop TINKERPOP-1576
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/tinkerpop/pull/509.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 #509
----
commit 94cdc2adfeab6e2a868b9ccb273e8336cad82144
Author: Florian Hockmann <[email protected]>
Date: 2016-11-30T20:08:05Z
Fix calling of non-existing methods
----
> gremlin-python calls non-existent methods
> -----------------------------------------
>
> Key: TINKERPOP-1576
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1576
> Project: TinkerPop
> Issue Type: Bug
> Components: language-variant
> Affects Versions: 3.2.2, 3.2.3
> Reporter: Florian Hockmann
> Priority: Trivial
>
> The {{\_\_}} class calls two methods of the {{GraphTraversal}} class that are
> not present in that class, namely: the constructor {{__()}} and {{start()}}
> {code}
> >>> __.__()
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "C:\Program
> Files\Python35\Lib\site-packages\gremlin_python\process\graph_traversal.py",
> line 401, in __
> return GraphTraversal(None, None, Bytecode()).__(*args)
> TypeError: 'GraphTraversal' object is not callable
> {code}
> {code}
> >>> __.start()
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "C:\Program
> Files\Python35\Lib\site-packages\gremlin_python\process\graph_traversal.py",
> line 623, in start
> return GraphTraversal(None, None, Bytecode()).start(*args)
> TypeError: 'GraphTraversal' object is not callable
> {code}
> This can be easily fixed by excluding those two methods in the
> {{GraphTraversalSourceGenerator}}. I will create a pull request for that.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)