You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by kr...@apache.org on 2021/11/19 01:47:29 UTC
[tinkerpop] branch TINKERPOP-2652 updated: Continue adding regex predicates to Python client
This is an automated email from the ASF dual-hosted git repository.
krlawrence pushed a commit to branch TINKERPOP-2652
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
The following commit(s) were added to refs/heads/TINKERPOP-2652 by this push:
new 754951a Continue adding regex predicates to Python client
754951a is described below
commit 754951a4d952697a717c37648e4f25d24daeecf2
Author: Kelvin Lawrence <gf...@yahoo.com>
AuthorDate: Thu Nov 18 19:47:05 2021 -0600
Continue adding regex predicates to Python client
---
.../src/main/python/gremlin_python/process/traversal.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/gremlin-python/src/main/python/gremlin_python/process/traversal.py b/gremlin-python/src/main/python/gremlin_python/process/traversal.py
index 3b7627e..463a355 100644
--- a/gremlin-python/src/main/python/gremlin_python/process/traversal.py
+++ b/gremlin-python/src/main/python/gremlin_python/process/traversal.py
@@ -422,6 +422,11 @@ def notStartingWith(*args):
def startingWith(*args):
return TextP.startingWith(*args)
+def regex(*args):
+ return TextP.regex(*args)
+
+def notRegex(*args):
+ return TextP.notRegex(*args)
statics.add_static('containing', containing)
@@ -435,6 +440,10 @@ statics.add_static('notStartingWith', notStartingWith)
statics.add_static('startingWith', startingWith)
+statics.add_static('regex', regex)
+
+statics.add_static('notRegex', notRegex)
+