disabling TCP connections, just for one script

Diez B. Roggisch deets at nospam.web.de
Fri Sep 9 13:42:02 EDT 2005


Adam Monsen wrote:
> It would be helpful to be able to temporarily disable AF_INET socket
> connections (I don't care about IPv6 for now).

Maybe put an socket.py with mockup funktions in your path before the 
real socket.py. Then you can alter teh behaviour of all necessary functions.

Diez



More information about the Python-list mailing list