[Twisted-Python] What the hell?

Chris Clearwater chris at detriment.org
Fri Aug 31 12:43:38 MDT 2001


I agree.  The transport for a client or server should probally not be
generalized to a socket at all.  Maybe this calls for the creation of
twisted.transport ?  I am not familiar much with the twisted codebase, so
please dont flame me if something like this already exists :)

On Fri, Aug 31, 2001 at 01:15:16PM -0400, Itamar wrote:
> From tcp.py:
> 
> ============
> class Client(Connection):
>     """A client for TCP (and similiar) sockets.
>     """
>     def __init__(self, host, port, protocol):
>         """Initialize the client, setting up its socket, and request to
>         connect.
>         """
>         if host == 'unix':
>             # "port" in this case is really a filename
> ...
> ============
> 
> That is sooo wrong. What if my computer is named 'unix'? Why does the 
> TCP code deal with files?
> 
> 
> 
> 
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

-- 
python -c "print reduce(lambda x,y: x+y,map(lambda x: chr((23069453891\
36636418523668102630431981680355427L>>(x*8))&0xFF),xrange(0,19)))"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20010831/babb83c9/attachment.sig>


More information about the Twisted-Python mailing list