
Sept. 2, 2001
11:28 a.m.
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 ...