[issue12523] 'str' object has no attribute 'more' [/usr/lib/python3.2/asynchat.py|initiate_send|245]

Caelyn McAulay report at bugs.python.org
Wed Apr 16 21:18:53 CEST 2014


Caelyn McAulay added the comment:

I like that approach decidedly more than my original one. Suggested revision patch attached.

The sample script will not produce the following:

error: uncaptured python exception, closing channel <__main__.fake_asynchat 127.0.0.1:8000 at 0x7f10a85b4ae8> (<class 'TypeError'>:data must be a bytes object [/home/caelyn/CPython/async_chat_error/Lib/asyncore.py|write|91] [/home/caelyn/CPython/async_chat_error/Lib/asyncore.py|handle_write_event|460] [/home/caelyn/CPython/async_chat_error/Lib/asyncore.py|handle_connect_event|448] [asynchat_example.py|handle_connect|16] [/home/caelyn/CPython/async_chat_error/Lib/asynchat.py|push|185])

Which is, I think, is a bit more useful.

----------
Added file: http://bugs.python.org/file34923/issue12523_r2.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12523>
_______________________________________


More information about the Python-bugs-list mailing list