[Twisted-Python] What the hell?

Juergen Hermann j.her at t-online.de
Sun Sep 2 09:28:38 MDT 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
family.

i.e.

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






More information about the Twisted-Python mailing list