[IronPython] [Simpy-users] Simpy under IronPython 0.96
Stanislas Pinte
stan at phidani.be
Fri Dec 16 18:44:00 CET 2005
Selon Klaus Muller <kgmuller at xs4all.nl>:
> Good work! What type does IronPython actually return for a generator?
a generated type...
<type '__main__+gentest0'>
not looking like a generator...
Stan.
>
> 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...
> >
> >
> >
> >
>
More information about the Ironpython-users
mailing list