[IronPython] [Simpy-users] Simpy under IronPython 0.96

Stanislas Pinte stan at phidani.be
Fri Dec 16 18:04:24 CET 2005


Selon Klaus Muller <kgmuller at xs4all.nl>:

> Stan,
> Your assertion must be:
> assert type(gentest()) == types.GeneratorType,
> 
> _not_:
> assert type(gentest) == types.GeneratorType.
> 
> The call of a generator function generates a generator object.

You are right, sorry!!

there we are:

[bin]> python test.py
'import site' failed; use -v for traceback
<type 'generator'>
[bin]> ./IronPythonConsole.exe test.py
<type '__main__+gentest0'>
Traceback (most recent call last):
   at __main__.Initialize() in c:\Program Files\IronPython-0.9.6\bin\test.py:lin
e 9
AssertionError
[bin]>

So let's file a bug to IronPython...






More information about the Ironpython-users mailing list