From: Logan Capaldo Date: 2005-09-15T03:11:24+09:00 Subject: Re: IO like object On Sep 11, 2005, at 6:46 PM, Alex Fenton wrote: > Hi Simon > > Nice job on finding a solution to unwanted command prompts with > popen() > and backticks on win32. > > Guessing this is on the same track, perhaps the standard 'stringio' > library > could be used to supply IO-esque methods to string input and output > from > Win32API calls? > > alex > > Simon Kr�ger wrote: > >> Hi List, >> i have an IO like object (in this case win32 pipes, connected to a >> child process). If i can provide a read and write method is there >> a way to get all the other IO methods for free? (like getc, each, >> each_byte, print, printf....) >> cheers >> Simon >> > > Have you considered creating a subclass from IO and defining the necessary methods?