[issue9543] 2.6.6 rc1 socket.py flush() calls del on unbound 'view' variable

Andrew Bennetts report at bugs.python.org
Mon Aug 9 14:05:43 CEST 2010


Andrew Bennetts <spiv at users.sourceforge.net> added the comment:

Chatting with Taggnostr on IRC I've trimmed that reproduction down to something much cleaner (no magic numbers or threads involved):

import socket
sock_a, sock_b = socket.socketpair()
sock_a = socket.socket(_sock=sock_a)
sock_b.close()
file_a = sock_a.makefile('w')
file_a.write('x')
file_a.flush()

----------

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


More information about the Python-bugs-list mailing list