Selon Klaus Muller <[EMAIL PROTECTED]>:

> 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...



_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to