Repository: tinkerpop
Updated Branches:
  refs/heads/TINKERPOP-1278 dc79f8fdf -> 85e15f7c5


okay, I give up... this was way too painful and a time sink. minor edits from 
last 'give up.'


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

Branch: refs/heads/TINKERPOP-1278
Commit: 85e15f7c5c18b430e92451d586d22d2f8583f257
Parents: dc79f8f
Author: Marko A. Rodriguez <okramma...@gmail.com>
Authored: Tue Aug 16 12:12:24 2016 -0600
Committer: Marko A. Rodriguez <okramma...@gmail.com>
Committed: Tue Aug 16 12:12:24 2016 -0600

----------------------------------------------------------------------
 docs/preprocessor/awk/init-code-blocks.awk   | 3 +--
 docs/src/reference/gremlin-variants.asciidoc | 9 +++++++--
 2 files changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/85e15f7c/docs/preprocessor/awk/init-code-blocks.awk
----------------------------------------------------------------------
diff --git a/docs/preprocessor/awk/init-code-blocks.awk 
b/docs/preprocessor/awk/init-code-blocks.awk
index dfed351..24da9d5 100644
--- a/docs/preprocessor/awk/init-code-blocks.awk
+++ b/docs/preprocessor/awk/init-code-blocks.awk
@@ -59,15 +59,14 @@ BEGIN {
     print "jython.eval('sys.path.append(\"" TP_HOME 
"/gremlin-python/target/test-classes/Lib\")')"
     # print 
"jython.eval('sys.path.append(\"/Users/marko/software/tinkerpop/gremlin-python/target/test-classes/Lib\")')"
     print "jython.eval('from gremlin_python import statics')"
+    print "jython.eval('from gremlin_python.process.traversal import *')"
     print "jython.eval('from gremlin_python.process.graph_traversal import 
GraphTraversal')"
     print "jython.eval('from gremlin_python.process.graph_traversal import 
GraphTraversalSource')"
     print "jython.eval('from gremlin_python.process.graph_traversal import 
__')"
     # print "jython.eval('from 
gremlin_python.driver.websocket_remote_connection import 
WebSocketRemoteConnection')"
     print "jython.eval('from gremlin_python.structure.remote_graph import 
RemoteGraph')"
-    print "jython.eval('from gremlin_python.process.traversal import 
Operator')"
     print "jython.eval('from gremlin_python.process.graphson import 
GraphSONWriter')"
     print "jython.eval('from gremlin_python.process.graphson import 
serializers')"
-    print "jython.eval('from gremlin_python.process.traversal import 
Bytecode')"
     print "jython.eval('statics.load_statics(globals())')"
     print "jythonBindings = jython.createBindings()"
     print "jythonBindings.put('g', 
jython.eval('RemoteGraph(None).traversal()'))"

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/85e15f7c/docs/src/reference/gremlin-variants.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/reference/gremlin-variants.asciidoc 
b/docs/src/reference/gremlin-variants.asciidoc
index 4bda7de..c05f343 100644
--- a/docs/src/reference/gremlin-variants.asciidoc
+++ b/docs/src/reference/gremlin-variants.asciidoc
@@ -193,13 +193,18 @@ such that the remote connection host can infer which 
translator to use.
 
 [gremlin-python,modern]
 ----
-g.V().out().map(lambda: "lambda x: x.get().value('name').length()").sum() <1>
 g.V().out().map(lambda: ("it.get().value('name').length()", 
"gremlin-groovy")).sum() <2>
+----
+
+todo: put below back into above.
+
+[source,python]
+g.V().out().map(lambda: "lambda x: x.get().value('name').length()").sum() <1>
 gremlin_python.statics.default_lambda_language = "gremlin-groovy" <3>
 g.V().out().map(lambda: "it.get().value('name').length()").sum() <4>
-----
 
 <1> A zero-arg lambda yields a string representation of a lambda in 
Gremlin-Jython.
 <2> A zero-arg lambda can yield a 2-tuple with the second element being the 
lambda language.
 <3> The default lambda language can be changed so a 2-tuple is no needed.
 <4> A zero-arg lambda yields a string representation of a closure in 
Gremlin-Groovy.
+

Reply via email to