This is an automated email from the ASF dual-hosted git repository.
spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
The following commit(s) were added to refs/heads/master by this push:
new 4658d83 Changed Bindings syntax in python docs. CTR
4658d83 is described below
commit 4658d8342d4d7b4e92d442bb138fec611c65472e
Author: Stephen Mallette <[email protected]>
AuthorDate: Thu Jan 3 06:57:16 2019 -0500
Changed Bindings syntax in python docs. CTR
---
docs/src/reference/gremlin-variants.asciidoc | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/docs/src/reference/gremlin-variants.asciidoc
b/docs/src/reference/gremlin-variants.asciidoc
index 30917b6..f732f36 100644
--- a/docs/src/reference/gremlin-variants.asciidoc
+++ b/docs/src/reference/gremlin-variants.asciidoc
@@ -651,6 +651,8 @@ from gremlin_python.process.traversal import P
from gremlin_python.process.traversal import Pop
from gremlin_python.process.traversal import Scope
from gremlin_python.process.traversal import Barrier
+from gremlin_python.process.traversal import Bindings
+from gremlin_python.process.traversal import WithOptions
----
These can be used analogously to how they are used in Gremlin-Java.
@@ -757,8 +759,8 @@ instead of translating, compiling, and then executing each
submitted bytecode, i
[gremlin-python,modern]
----
-g.V(('id',1)).out('created').map(lambda: ("it.get().value('name').length()",
"gremlin-groovy")).sum().toList()
-g.V(('id',4)).out('created').map(lambda: ("it.get().value('name').length()",
"gremlin-groovy")).sum().toList()
+g.V(Bindings.of('id',1)).out('created').map(lambda:
("it.get().value('name').length()", "gremlin-groovy")).sum().toList()
+g.V(Bindings.of('id',4)).out('created').map(lambda:
("it.get().value('name').length()", "gremlin-groovy")).sum().toList()
----
==== Native Python Lambdas