<br><br><div class="gmail_quote">On Tue, Apr 10, 2012 at 4:01 AM, Glyph Lefkowitz <span dir="ltr">&lt;<a href="mailto:glyph@twistedmatrix.com">glyph@twistedmatrix.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div class="im"><div><div>On Apr 9, 2012, at 3:05 AM, gelin yan wrote:</div><br><blockquote type="cite"><span style="border-collapse:separate;font-family:&#39;Bitstream Vera Sans Mono&#39;;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div>
I personally hope deferredGenerator will be always there even python 2.4 support has been abandoned. deferredGenerator itself is not so elegant as inlineCallbacks, at least I don&#39;t need to struggle with a series of callback functions..</div>
</span></blockquote></div><br></div><div>We would like to get rid of deferredGenerator eventually; it&#39;s worse than inlineCallbacks in pretty much every way.  It sounds like you have discovered a bug though, either in Twisted, or, more likely, in Cython.  Please narrow down the bug so it can be fixed and you can start using inlineCallbacks in Cython.</div>
<div><br></div><div>For now, just keep an eye on new deferredGenerator tickets and comment on any that appear to request its removal; there&#39;s an RSS feed at &lt;<a href="http://twistedmatrix.com/trac/timeline" target="_blank">http://twistedmatrix.com/trac/timeline</a>&gt; which may be useful to you for that.  If you put a comment on any such ticket I&#39;m sure we can wait a while for Cython to fix the bug.</div>
<span class="HOEnZb"><font color="#888888"><div><br></div><div>-glyph</div><div><br></div></font></span></div><br>_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a></blockquote><div><br></div><div>Hi Glyph</div><div><br></div>
<div>    When trying to run inlineCallbacks with Cython, a TypeError would come out like:</div><div><br></div><div>TypeError: inlineCallbacks requires &lt;built-in function test&gt; to produce a generator; instead got &lt;cy3.__pyx_scope_struct__test object at 0x02808848)</div>
<div><br></div><div>test is the function where inlineCallbacks uses. </div><div><br></div><div>It looks like cython changes the name test to  cy3.__pyx_scope_struct__test internally so generator can&#39;t work properly.</div>
<div><br></div><div><br></div><div>Regards</div><div><br></div><div>gelin yan</div></div><br>