__del__ pattern?

Peter Hansen peter at engcorp.com
Tue Aug 16 17:43:08 EDT 2005


Dan wrote:
> someSocket.bind(('localhost', somePort)) means accept only connections
> from the local machine.

Almost: accept only attempts to connect *to* localhost, from the local 
machine.  Attempting to connect -- even locally -- using one of the IP 
addresses bound to an external interface will fail.

-Peter



More information about the Python-list mailing list