[Twisted-Python] What the hell?

Juergen Hermann j.her at t-online.de
Sun Sep 2 11:28:38 EDT 2001

On Sun, 02 Sep 2001 10:00:11 -0400, Itamar wrote:

>OK. But checking by host == 'unix' is still pretty bad, IMHO. Maybe 
>check for the port being a string instead? (and have the tcp.py 
>docstrings document this.)

If you want polymrphic addressing, you should use a class per address


	tuple -> socket (servername, port)
	class UnixFile -> an instance holding the filename

More information about the Twisted-Python mailing list