Class functions

Jason Orendorff jason at jorendorff.com
Tue Feb 26 18:38:19 EST 2002


> Yeah, my function runs a loop looking for updates and
> posting them to a StringIO file object.  I want access
> to that file object in real time in my client instead
> of waiting for the function to "return".

Socket objects have a method sok.makefile('rb') that
returns a file object.  I think that's what you want.
  http://www.python.org/doc/current/lib/socket-objects.html

Anyway, if you could provide some real code, I'm sure
someone here could make it work.  :)

Good luck!

## Jason Orendorff    http://www.jorendorff.com/




More information about the Python-list mailing list