<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><br><br><br><br><br><div>Jean-Paul<br>您好!<br><br>Thanks for your help. </div><div>Because i am a fresh man to twisted. </div><div>I will roll back to version 2.x and try the application again.<br><br>谢谢!!<br><font color="#000000">----------------------------<br></font><font color="#000000">姓名 : 吴志高/Charles<br></font><font color="#000000">电话 : (+086)13410859946<br></font><div>邮箱 : <a href="mailto:wuzhigaoem@163.com">wuzhigaoem@163.com</a></div><div><font color="#000000">================================================</font><br></div></div><div id="divNeteaseMailCard"></div><br><pre><br>At 2013-09-17 20:14:08,exarkun@twistedmatrix.com wrote:
>On 09:06 am, _@lvh.io wrote:
>>Hi Charles,
>>
>>
>>Yes, twistd doesn't appear to work on py3k. Not being able to import
>>_preamble is normal (once Twisted has been installed), but _preamble 
>>does
>>assume sys.exc_clear exists, which isn't true on 3.x.
>>
>>I couldn't find any ticket on this. Perhaps you should file it (and 
>>maybe
>>fix it!) :)
>
>I think there are still many unported dependencies of `twistd` to port 
>first.
>>It's my understanding that the new except clause semantics are expected 
>>to
>>take care of this problem.
>>
>>Can someone comment as to why this was put there in the first place, 
>>and,
>>specifically, why it can't just be "pass"? Is there some logging system
>>that looks at the current exception or something when twistd (or some 
>>other
>>script) starts?
>
>Both `log.err()´ and `Failure()´ look at the current exception.  If we 
>don't `sys.clear_exc()´ here then the first piece of code that tries to 
>use either of those may get a surprising result.  The current exception 
>state can last a long time so this surprise can hide for a remarkably 
>long time before showing up.
>
>The exception state also holds references to lots of extra things on the 
>stack which is undesirable even if there are no other side-effects.
>
>Jean-Paul
>
>_______________________________________________
>Twisted-Python mailing list
>Twisted-Python@twistedmatrix.com
>http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
</pre></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>