Skip to content
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

add RawExpression to gremlin_python #340

Merged
merged 4 commits into from Jun 17, 2016

Conversation

leifurhauks
Copy link

As described on dev@tinkerpop.apache.org thread gremlin_python GLV

@okram
Copy link
Contributor

okram commented Jun 16, 2016

How do we use this again? This is just for the GeoPoint-style adding classes? Can you provide an example so we can add it to the docs. See:

https://github.com/apache/tinkerpop/blob/TINKERPOP-1278/docs/src/reference/gremlin-variants.asciidoc

@leifurhauks
Copy link
Author

This is just for the GeoPoint-style adding classes?

More generally, it can be used to create expressions that make use of APIs, presumably provided by the graph vendor, that aren't strictly part of gremlin. My immediate use case is to call static methods on Titan's Geoshape class.

I'll add an example to the asciidoc.

@leifurhauks
Copy link
Author

@okram , I realized the current implementation of bindings as dicts is breaking 2/3 compatibility. It also makes it bit hairy to extract just the key in RawExpression.

I would suggest using a tuple (e.g. ('symbol', value) ) or a simple class that just has two data members. May I revise the bindings implementation?

As described on dev@tinkerpop.apache.org thread gremlin_python GLV
@okram
Copy link
Contributor

okram commented Jun 16, 2016

Please. Use tuple though instead of introducing a new class. Thanks.

On Jun 16, 2016, at 1:54 PM, Leifur Halldor Asgeirsson notifications@github.com wrote:

@okram https://github.com/okram , I realized the current implementation of bindings as dicts is breaking 2/3 compatibility. It also makes it bit hairy to extract just the key in RawExpression.

I would suggest using a tuple (e.g. ('symbol', value) ) or a simple class that just has two data members. May I revise the bindings implementation?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub #340 (comment), or mute the thread https://github.com/notifications/unsubscribe/AAJFvS3H3oI1-I7llUc6MY03gicy2zI1ks5qManogaJpZM4I3nqp.

@spmallette
Copy link
Contributor

@leifurhauks do you know why travis is not happy? the build took some errors it seems. Can you please look into that as you push your next change?

@leifurhauks
Copy link
Author

I believe the failures are due to the fact that the aenum package (introduced in 8ee2904 ) is not installed in the CI environment. As a result, the gremlin_python module errors on import.

Since 146f476, the test suite adds the contents of PYTHONPATH to sys.path, but aenum still needs to be downloaded and built. One possibility would be to create a virtualenv in the working dir, install aenum to that virtualenv, and add it to PYTHONPATH.

@spmallette
Copy link
Contributor

ah - didn't realize that build was hosed in the TINKERPOP-1278 branch itself.

@asfgit asfgit merged commit 65ca75d into apache:TINKERPOP-1278 Jun 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants