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 2022/01/07 21:53:14 UTC

[tinkerpop] 02/08: 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

commit 7237b0036d7ce253dd3cc95de7371267a571c38d
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 f8bb83c..67ea377 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)
+