[IronPython] [Simpy-users] Simpy under IronPython 0.96
Klaus Muller
kgmuller at xs4all.nl
Fri Dec 16 18:41:19 CET 2005
Good work! What type does IronPython actually return for a generator?
Klaus Müller
> -----Original Message-----
> From: Stanislas Pinte [mailto:stan at phidani.be]
> Sent: Friday, December 16, 2005 6:04 PM
> To: Klaus Muller
> Cc: simpy-users at lists.sourceforge.net; users at lists.ironpython.com
> Subject: RE: [Simpy-users] Simpy under IronPython 0.96
>
> 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...
>
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3936 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20051216/454b192c/attachment.bin>
More information about the Ironpython-users
mailing list