From: Gavin Sinclair Date: 2003-01-16T01:23:25+09:00 Subject: Re: Installing and using 'shim' On Thursday, January 16, 2003, 2:53:31 AM, ts wrote: >>>>>> "G" == Gavin Sinclair writes: G>> - I've found no instructions on using StringIO! > StringIO is one of these extensions which don't need documentation, or > more precisely just need to document ::new, #initialize > Once you have created a StringIO object, it must respond exactly like an > IO object. Just the differences must be given (see the file README) The README omits the string and string= methods that are defined in the C source. I expect more than just IO-like behaviour from a class called StringIO. > Add documentation for StringIO is just like duplicate the documentation > for IO. I don't mean full documentation, but some examples of use would be nice. Unit tests are good for that, and that's what I used. Unfortunately, they don't test the string and string= methods! Maybe I'm not supposed to be using these methods. I don't know how else to achieve my goal. That's why some demonstrations would be nice. (Just checked Wiki, nothing there.) I'll detail my problem in a different thread, unless I can solve it soon. Gavin