so any pointers would be appreciated (at the moment, I'm just
following execution in the debugger).
While not directly related to IronPython (or MSFT for that matter), this
seems like a perfect use-case for Vista Smalltalk (non-MS implementation of
Smalltalk and Lisp; see: VST Wiki). I've Cc'd
Thanks for the responses,
I've considered using yield, which is what drew me to Python in the first
place, but I operate under the theory that the developer should make it as
easy as possible for the user, not themselves. Which means I need to do the
yielding automatically on the C# side.
What I
Presumably someone could also modify IronPython's CodeGen class to turn all
methods into generators that yield at regular intervals. This would take a
significant performance hit as all the locals would be hoisted into a
FunctionEnvironmentDictionary and would still need the scheduler / virtual
Thanks for reporting this bug. I've opened CodePlex bug #7766
(http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=7766).
There's some other weird behavior I was looking at for __builtins__ last week
and maybe this will turn out to be related. Redefining __builtins__ at the
conso
Stackless Python is definitely the way to go, but if you needed to do
this in IronPython/.NET, you can get a poor man's form of
micro-threading with generators. Taking your example, you could re-write
it like so:
def main(self):
yield move(5)
yield turn(90)
if self.direction == Direct