[python-nl] Problem passing instance (self) when calling CLIPS

Dirkjan Ochtman dirkjan at ochtman.nl
Fri Dec 25 18:38:55 CET 2009

On Fri, Dec 25, 2009 at 16:35, Frans Schneider
<f.schneider at de-bleek.demon.nl> wrote:
> No, asserting the fact and giving the CLIPS engine the run instructrion
> will fire the rule which does the python-call to MyMethod. As you see
> from the output, this works since the output shows 'MyMethod being
> initialized'

Yeah, you're wrong here. The Callable.__init__ call happens at module
load time, not at MyObject.MyMethod call time.



More information about the Python-nl mailing list