You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2016/09/04 02:39:00 UTC

tinkerpop git commit: Use standard callouts now that python can support them. CTR

Repository: tinkerpop
Updated Branches:
  refs/heads/master 27fd4deca -> 86f87da44


Use standard callouts now that python can support them. CTR


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/86f87da4
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/86f87da4
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/86f87da4

Branch: refs/heads/master
Commit: 86f87da4481cee31c74f0694dce74b0a7dee990e
Parents: 27fd4de
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Sat Sep 3 22:38:21 2016 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Sat Sep 3 22:38:34 2016 -0400

----------------------------------------------------------------------
 docs/src/reference/gremlin-variants.asciidoc | 32 +++++++++++------------
 1 file changed, 16 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/86f87da4/docs/src/reference/gremlin-variants.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/reference/gremlin-variants.asciidoc b/docs/src/reference/gremlin-variants.asciidoc
index efa24a4..86e0e5b 100644
--- a/docs/src/reference/gremlin-variants.asciidoc
+++ b/docs/src/reference/gremlin-variants.asciidoc
@@ -236,22 +236,22 @@ such that the remote connection host can infer which translator and ultimate exe
 
 [gremlin-python,modern]
 ----
-g.V().out().map(lambda: "lambda x: len(x.get().value('name'))").sum().toList()
-statics.default_lambda_language
-g.V().out().map(lambda: ("it.get().value('name').length()", "gremlin-groovy")).sum().toList()
-statics.default_lambda_language = 'gremlin-groovy'
-g.V().out().map(lambda: "it.get().value('name').length()").sum().toList()
-g.V().out().map(lambda: ("lambda x: len(x.get().value('name'))", "gremlin-python")).sum().toList()
-statics.default_lambda_language = 'gremlin-python'
-g.V().out().map(lambda: "x: len(x.get().value('name'))").sum().toList()
+g.V().out().map(lambda: "lambda x: len(x.get().value('name'))").sum().toList()                     <1>
+statics.default_lambda_language                                                                    <2>
+g.V().out().map(lambda: ("it.get().value('name').length()", "gremlin-groovy")).sum().toList()      <3>
+statics.default_lambda_language = 'gremlin-groovy'                                                 <4>
+g.V().out().map(lambda: "it.get().value('name').length()").sum().toList()                          <5>
+g.V().out().map(lambda: ("lambda x: len(x.get().value('name'))", "gremlin-python")).sum().toList() <6>
+statics.default_lambda_language = 'gremlin-python'                                                 <7>
+g.V().out().map(lambda: "x: len(x.get().value('name'))").sum().toList()                            <8>
 ----
 
-1. A zero-arg lambda yields a string representation of a lambda in Gremlin-Python.
-2. The default lambda language is currently Gremlin-Python.
-2. A zero-arg lambda yields a 2-tuple where the second element is the language of the lambda (Gremlin-Groovy).
-3. The default lambda language can be statically changed.
-4. A zero-arg lambda yields a string representation of a closure in Gremlin-Groovy.
-5. A zero-arg lambda yields a 2-tuple where the second element is the language of the lambda (Gremlin-Python).
-6. The default lambda language is changed back to Gremlin-Python.
-7. If the `lambda`-prefix is not provided, then it is appended automatically in order to give a more natural look to the expression.
+<1> A zero-arg lambda yields a string representation of a lambda in Gremlin-Python.
+<2> The default lambda language is currently Gremlin-Python.
+<3> A zero-arg lambda yields a 2-tuple where the second element is the language of the lambda (Gremlin-Groovy).
+<4> The default lambda language can be statically changed.
+<5> A zero-arg lambda yields a string representation of a closure in Gremlin-Groovy.
+<6> A zero-arg lambda yields a 2-tuple where the second element is the language of the lambda (Gremlin-Python).
+<7> The default lambda language is changed back to Gremlin-Python.
+<8> If the `lambda`-prefix is not provided, then it is appended automatically in order to give a more natural look to the expression.