[
https://issues.apache.org/jira/browse/TINKERPOP-1895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16392938#comment-16392938
]
stephen mallette commented on TINKERPOP-1895:
---------------------------------------------
The fix to this one is on TINKERPOP-1896
> gremlin-python lambdas do not work with
> HaltedTraverserStrategy(DetachedFactory)
> --------------------------------------------------------------------------------
>
> Key: TINKERPOP-1895
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1895
> Project: TinkerPop
> Issue Type: Bug
> Components: python
> Affects Versions: 3.3.1
> Reporter: Branden Moore
> Priority: Major
> Fix For: 3.2.8, 3.3.2
>
>
> When using the HaltedTraverserStrategy(o.a.t.g.s.u.d.DetachedFactory) in
> gremlin-python, lambdas cannot be processed, returning a Python NameError.
> Using the examples from the documentation, against
> gremlin-server-modern-py.yaml
>
> g.V().out().map(lambda: "x: len(x.get().value('name'))").sum().toList()
> [24L]
> g.withStrategies(HaltedTraverserStrategy("org.apache.tinkerpop.gremlin.structure.util.detached.DetachedFactory")).V().out().map(lambda:
> "x: len(x.get().value('name'))").sum().toList()
> GremlinServerError: 599: NameError: name 'TraversalStrategy' is not defined
> in <script> at line number 1
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)