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

TINKERPOP-2199 Fixed P.within()/without() behavior in gremlin-python #1106

Merged
merged 4 commits into from
May 9, 2019

Conversation

spmallette
Copy link
Contributor

https://issues.apache.org/jira/browse/TINKERPOP-2199

Made behavior for varags usage consistent with what Java does. Was never really sure what to do with this, but after reviewing the Java implementation it prefers a Collection as a single argument and basically converts the varargs to Collection, so basically just doing the same thing here.

builds with mvn clean install

VOTE +1

@spmallette
Copy link
Contributor Author

Had to tack in a few more commits on this after doing #1107 which addresses this issue for JS. The additional commits basically just do the same for C# that was done for python on this PR, adds some more tests in Java and fixes the io docs for GraphSON 3.0 with respect to P.within()/without().

@jorgebay
Copy link
Contributor

jorgebay commented May 6, 2019

Nice, VOTE +1

Made behavior for varags usage consistent with what Java does. Was never really sure what to do with this, but after reviewing the Java implementation it prefers a Collection as a single argument and basically converts the varargs to Collection, so basically just doing the same thing here.
Needed to better deal with varargs to these methods and to match Java usage which basically just calls these methods with the Collection argument. Matches up more nicely now.
@spmallette spmallette merged commit 52159f6 into tp33 May 9, 2019
@spmallette spmallette deleted the TINKERPOP-2199 branch May 9, 2019 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants