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

2010-08-12 Thread Ezio Melotti
Ezio Melotti added the comment: Done in r83964. -- resolution: accepted -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

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

2010-08-12 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Patch accepted, please apply for 2.6.6. -- resolution: -> accepted ___ Python tracker ___ ___ Pyth

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

2010-08-11 Thread Ezio Melotti
Ezio Melotti added the comment: Here is the patch. -- keywords: +needs review, patch stage: unit test needed -> patch review Added file: http://bugs.python.org/file18474/issue9543.diff ___ Python tracker __

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

2010-08-09 Thread Andrew Bennetts
Andrew Bennetts 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.makefil

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

2010-08-09 Thread Andrew Bennetts
Andrew Bennetts added the comment: I have a reproduction script on the Ubuntu bug report I just filed for this issue: Pasting here for convenience: """ import socket import threading sock_a, sock_b = socket.socketpair() sock_a

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

2010-08-09 Thread Martin
Martin added the comment: spiv wrote a script to repo the issue in the downstream ubuntu bug: https://bugs.launchpad.net/python/+bug/615240 -- nosy: +gz ___ Python tracker ___ __

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

2010-08-09 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks for the report and for figuring out what was the cause! Indeed the "view" added after the "del" shouldn't be there, so I will remove it. It would also be great if you could provide a minimal script to reproduce the problem so that it can be turned to a tes

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

2010-08-08 Thread R. David Murray
R. David Murray added the comment: Thank you very much for testing the alpha and making a report. I've added Ezio to nosy since he backported the patch, and Barry since he's release manager. -- nosy: +barry, ezio.melotti, r.david.murray priority: normal -> release blocker stage: -> u

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

2010-08-08 Thread David I. Lehn
New submission from David I. Lehn : An error was introduced in 2.6.6 rc1 in the socket flush() call where del is called on the unbound 'view' variable. Associated commit and diff: http://svn.python.org/view?view=rev&revision=83624 http://svn.python.org/view/python/tags/r266rc1/Lib/socket.py?r1