Thomas Jollans wrote:
> On Tue, 03 Oct 2006 10:29:00 -0700, "SpreadTooThin" <[EMAIL PROTECTED]>
> let this slip:
>
> > I was under the impression that a file and socket were interchangable
> > (like a file descriptor).   Does anyone have an idea that might help me
> > minimize the impact on my code?
>
> are you looking for sockets' makefile method ?
>
Yes.. but also I'm thinking about a new python class based on array...
like (psuedo code)

class myArray(array):
   def todevice(self, device):
      if device is a file:
         self.tofile
      else
         writesocket(data)
   def fromdevice(self, device):

Is this advisable?



 
> -- 

> Thomas Jollans alias free-zombie

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to