Hello, Internally we use a wonderful simulation framework written in python: http://simpy.sourceforge.net/
I cannot make it work on python because it rests on generators... the main loop of simpy uses type(myFunction) == types.GeneratorType) to determine if it is a generator or not... > if not (type(process) == types.GeneratorType): > raise Simerror("Fatal SimPy error: activating function which"+ > " is not a generator (contains no 'yield')") However, in IronPython: >>> import types >>> def gentest(): for i in range(0,10): yield i >>> print type(gentest) <type '__main__+gentest0'> whereas in CPython it returns <type 'generator'> Any idea if we can fix this easely? thanks, Stan. _______________________________________________ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com