我正在使用asynchat并尝试使用python3。获取此错误:
error: uncaptured python exception, closing channel <irc.IRC connected
at 0x9a5286c> (<class 'AttributeError'>:'str' object has no attribute
'more' [/usr/lib/python3.2/asyncore.py|write|89] [/usr/lib/python3.2
/asyncore.py|handle_write_event|462] [/usr/lib/python3.2asynchat.py|
handle_write|194] [/usr/lib/python3.2/asynchat.py|initiate_send|245])
我的代码在python2.6.7中运行良好。在
请提出建议?在
更新:我检查过我确实在使用python3的asynchat。在
^{pr2}$
每http://bugs.python.org/issue12523
错误似乎在
/usr/lib/python3.2/asynchat.py|initiate_send|245
中引发。在好像有人在}中唯一使用
self.producer_fifo
中放了一个字符串,而不是asyncchat.simple_producer
,这是{more()
方法的类。在相关问题 更多 >
编程相关推荐