David Scherer wrote: > > The reason no-subprocess mode is the default on Windows is to avoid >> trying to open more than subprocess, since opening a second one >> usually fails because of port clashes. About a year ago I worked up a >> patch: http://bugs.python.org/issue1529142, "Allowing multiple >> instances of IDLE with sub-processes". The problem with it is that I >> haven't been able to get it accepted, because of lack of interest and >> its relative complexity. > > > Why not just bind to port 0 ("any") and then do self.port = > self.rpcclt.listening_sock.getsockname()[1] to find what port the OS has > assigned? I tried that and IWFM. >
I've never heard of that option - it sounds great! Is it supported on all platforms? Can't that cause problems by binding to ports commonly used by other programs? - Tal
_______________________________________________ IDLE-dev mailing list [email protected] http://mail.python.org/mailman/listinfo/idle-dev
