tkolanko opened a new pull request #1506:
URL: https://github.com/apache/tinkerpop/pull/1506


   https://issues.apache.org/jira/browse/TINKERPOP-2656
   
   This PR implements two changes to the python translator
   
   1. The `SymbolHelper` map has been updated to include the missing
   reserved words/global functions differences for built in Python keywords
   https://tinkerpop.apache.org/docs/3.5.1/reference/#gremlin-python-differences
   2. A new translator type, `NoSugarTranslator`, has been added which
   translates the Gremlin query without using any of the syntax sugar.
   
   Given the following query:
   ```
   g.V().range(0, 10).has("person", "name", "marko").limit(2).values("name")
   ```
   
   Default translator:
   ```
   g.V()[0:10].has('person','name','marko')[0:2].name
   ```
   
   No sugar translator:
   ```
   g.V().range_(0,10).has('person','name','marko').limit(2).values('name')
   ```
   
   docker/build.sh -t -i -n passes all tests


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to