cannot declare method that has only one lazy argument

Bug #1560011 reported by Bulat Gaifullin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
YAQL
Invalid
Undecided
Unassigned

Bug Description

@yaql.specs.method
@yaql.specs.parameter('expression', yaql.yaqltypes.Lambda())
def some_method(expression, context):
   pass

context = yaql.create_context()
context.register_function(some_method) # raises Exception

The following exception occurs:
Traceback (most recent call last):
    context.register_function(changed)
  File "/Users/bgaifullin/py2.7/lib/python2.7/site-packages/yaql/language/contexts.py", line 126, in register_function
    raise exceptions.InvalidMethodException(spec.name)
yaql.language.exceptions.InvalidMethodException: Function 'changed' cannot be called as a method

Revision history for this message
Takashi Kajinami (kajinamit) wrote :

I'm closing this bug because this hasn't have any updated for long.

To move this forward we probably have to understand the use case first.

Changed in yaql:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.