[wingide-users] Here's a strangeone...SocketServer.ThreadingTCPServer

Wingware Support support at wingware.com
Thu Apr 17 16:23:04 MDT 2008


Harper, Jason wrote:
> I believe I have this one resolved.  The SocketServer.ThreadingTCPServer
> object does an import of the threading module in its process_request
> method.  This seems to cause a problem with threading in general
> (outside of Wing).  I derived my own class from ThreadingTCPServer so I
> can override the process_request method to avoid the in-line import of
> the threading module.

This makes a bit of sense, Wing imports threading when it starts the 
debugger so it can install needed hooks.  It's a good idea to do all 
imports in a single thread because there is an import lock in the 
interpreter internals that can cause problems.

Cheers,

John


More information about the wingide-users mailing list