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

IronPython

Denny
2006-10-31
2013-05-28
  • Denny
    Denny
    2006-10-31

    I recently built IronPython into my application.  Unfortunately in the CLR, yield is not allowed inside a try, unless it is also in the catch/finally (yield is different in that respect from standard python).  Thus YieldProlog will not load into IronPython.  (Obviously I can use the C# version, but I prefer a more interactive solution with python).  Thoughts?

     
    • Jeff Thompson
      Jeff Thompson
      2006-11-09

      Yield Prolog requires Python 2.5 which supports catch/finally with yield.
      The finally clause is used by Variable.unify to unbind the value after yielding.