Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#11 Add a Call() method to Generic and Function

Approved
closed
3
2004-11-29
2004-11-23
Francesco Garosi
No

Syntax of PyCLIPS programs can be more clear (from the
Python point of view) if a Call() method is implemented
for CLIPS "callable" entities, ie. Function and Generic
objects.

Probably implementing these objects as callable
themselves (by adding a __call__ method which maps to
Call) can be also result in more PyCLIPS compact code.
The only problem that could arise by doing this, is that
readability could suffer from it.

Whatever the implementation will be, Call() (and possibly
__call__()) should accept arguments in the form (self,
*args) and not (self, *args, **kwargs), as CLIPS
functions have no named arguments.

Discussion

  • Logged In: YES
    user_id=328337

    The fixes for this bug or request have been accepted and
    committed to current CVS tree: next release will include these
    fixes, possibly among other enhancements.

     
    • status: open --> closed