Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2199

within step does not work with more than two parameters with python

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.1
    • Fix Version/s: 3.3.7, 3.4.2
    • Component/s: python
    • Labels:
      None
    • Environment:
      Linux

      Description

      When there are more than two elements in 'within', the query return an TypeError. The same query is working as expected with gremlin console:

       

      > g.E().hasLabel(within('nephew', 'uncle', 'cousin')).drop().toList()

       

      Gave the error:

      ---------------------------------------------------------------------------

      TypeError Traceback (most recent call last)

      <ipython-input-63-074429099c0c> in <module> ---->

      1 g.E().hasLabel(within('nepheu', 'uncle', 'cousin')).drop().toList()

      2 #g.E().hasLabel('neveu').drop().toList()

      3 #g.E().hasLabel('oncle').drop().toList()

      4 #g.E().hasLabel('cousin').drop().toList()

       

      ~/.local/lib/python3.7/site-packages/gremlin_python/process/traversal.py in within(*args)

      316

      317 def within(*args): -->

      318     return P.within(*args)

      319 statics.add_static('within',within)

      320 ~/.local/lib/python3.7/site-packages/gremlin_python/process/traversal.py in within(*args)

      253 @staticmethod

      254 def within(*args): -->

      255      return P("within", *args)

      256

      257 @staticmethod

       

      TypeError: _init_() takes from 3 to 4 positional arguments but 5 were given

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                spmallette Stephen Mallette
                Reporter:
                gruel Nicolas Gruel
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: