You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by FlorianHockmann <gi...@git.apache.org> on 2016/11/30 20:21:37 UTC
[GitHub] tinkerpop pull request #509: TINKERPOP-1576 gremlin-python calls non-existen...
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 <fh...@florian-hockmann.de>
Date: 2016-11-30T20:08:05Z
Fix calling of non-existing methods
----
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] tinkerpop issue #509: TINKERPOP-1576 gremlin-python calls non-existent metho...
Posted by spmallette <gi...@git.apache.org>.
Github user spmallette commented on the issue:
https://github.com/apache/tinkerpop/pull/509
All tests pass with `docker/build.sh -t -i`
VOTE +1
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] tinkerpop issue #509: TINKERPOP-1576 gremlin-python calls non-existent metho...
Posted by okram <gi...@git.apache.org>.
Github user okram commented on the issue:
https://github.com/apache/tinkerpop/pull/509
I would actually remove `start()` from static imports. Its never used as its more of a "helper method" and then less chance for naming collisions.
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] tinkerpop issue #509: TINKERPOP-1576 gremlin-python calls non-existent metho...
Posted by FlorianHockmann <gi...@git.apache.org>.
Github user FlorianHockmann commented on the issue:
https://github.com/apache/tinkerpop/pull/509
Sure, the conflicts should be resolved now.
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] tinkerpop issue #509: TINKERPOP-1576 gremlin-python calls non-existent metho...
Posted by okram <gi...@git.apache.org>.
Github user okram commented on the issue:
https://github.com/apache/tinkerpop/pull/509
Perfect. VOTE +1.
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] tinkerpop issue #509: TINKERPOP-1576 gremlin-python calls non-existent metho...
Posted by okram <gi...@git.apache.org>.
Github user okram commented on the issue:
https://github.com/apache/tinkerpop/pull/509
In Gremlin-Java, those methods do the following:
```
public static <A> GraphTraversal<A, A> start() {
return new DefaultGraphTraversal<>();
}
public static <A> GraphTraversal<A, A> __(final A... starts) {
return inject(starts);
}
```
Perhaps just hardcode those methods in Python `__` to do the analogous behavior.
Also can you add some test cases?
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] tinkerpop pull request #509: TINKERPOP-1576 gremlin-python calls non-existen...
Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:
https://github.com/apache/tinkerpop/pull/509
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] tinkerpop issue #509: TINKERPOP-1576 gremlin-python calls non-existent metho...
Posted by dkuppitz <gi...@git.apache.org>.
Github user dkuppitz commented on the issue:
https://github.com/apache/tinkerpop/pull/509
Changes look easy enough to give a quick after-merge VOTE: +1
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] tinkerpop issue #509: TINKERPOP-1576 gremlin-python calls non-existent metho...
Posted by okram <gi...@git.apache.org>.
Github user okram commented on the issue:
https://github.com/apache/tinkerpop/pull/509
Sorry. I thought we had 3 VOTEs and I merged. I just asked @dkuppitz to VOTE.
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] tinkerpop issue #509: TINKERPOP-1576 gremlin-python calls non-existent metho...
Posted by spmallette <gi...@git.apache.org>.
Github user spmallette commented on the issue:
https://github.com/apache/tinkerpop/pull/509
@FlorianHockmann looks like you have some conflicts on your branch - could you rebase on tp32 please?
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] tinkerpop issue #509: TINKERPOP-1576 gremlin-python calls non-existent metho...
Posted by FlorianHockmann <gi...@git.apache.org>.
Github user FlorianHockmann commented on the issue:
https://github.com/apache/tinkerpop/pull/509
Yeah, `start()` could really lead to problems in client applications. I will remove it from the statics.
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] tinkerpop issue #509: TINKERPOP-1576 gremlin-python calls non-existent metho...
Posted by FlorianHockmann <gi...@git.apache.org>.
Github user FlorianHockmann commented on the issue:
https://github.com/apache/tinkerpop/pull/509
Ok, I wasn't sure whether those methods make sense for a GLV, but it's good to know as I can now also implement it that way for the C# GLV.
My last commit adds hard-coded implementations for those methods. `__.__()` just calls `__.inject()` and `__.start()` returns an empty `GraphTraversal`. `start()` can also be called through _statics.py_.
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---