mwh at python.net
Fri Jul 30 16:03:19 CEST 2004
Christopher T King <squirrel at WPI.EDU> writes:
> On Fri, 30 Jul 2004, Christian Tismer wrote:
> > With Bytecodehacks, I can make Psyco support generators,
> > by applying code transformations which turn the yield
> > statement into something different, but semantical
> > identical.
> > The goal is to have things both fast and nicely readable.
> Wouldn't the ideal solution be to make Psyco support generators
Yes. You make it sounds easy, though.
> Correct me if I'm wrong, but wouldn't that amount to no more than some C
> stack trickery (i.e. pop the stack used by the current function, store it
> & the current IP into the generator structure, return to caller)?
No, it's harder than that. How much do you know about how psyco works?
<glyph> we need PB for C#
* moshez squishes glyph
<moshez> glyph: squishy insane person
-- from Twisted.Quotes
More information about the Python-list