You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/12/01 12:40:00 UTC
[jira] [Commented] (TINKERPOP-2656) Provide a no syntax sugar translator for python
[ https://issues.apache.org/jira/browse/TINKERPOP-2656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17451778#comment-17451778 ]
ASF GitHub Bot commented on TINKERPOP-2656:
-------------------------------------------
spmallette merged pull request #1506:
URL: https://github.com/apache/tinkerpop/pull/1506
--
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: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
> Provide a no syntax sugar translator for python
> -----------------------------------------------
>
> Key: TINKERPOP-2656
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2656
> Project: TinkerPop
> Issue Type: Improvement
> Components: translator
> Affects Versions: 3.5.0
> Reporter: Tom Kolanko
> Priority: Minor
>
> The Python translator, by default, uses the python syntanic sugar syntax [https://tinkerpop.apache.org/docs/3.5.1/reference/#gremlin-python-sugar]
> which translates queries from
> {{g.V().range(0, 10).has("person", "name", "marko").limit(2).values("name")}}
>
> to
> {{g.V()[0:10].has('person','name','marko')[0:2].name}}
>
> It is also missing some of the reserved words/global functions differences for built in Python keywords [https://tinkerpop.apache.org/docs/3.5.1/reference/#gremlin-python-differences]
> * range
> * filter
> * id
> * max
> * min
> * sum
>
> The Python translator should be updated to:
>
> # Provide an option to translate to Python without the syntanic sugar
> # Use the proper reserved words/global functions
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)