From: daz Date: 2004-04-30T09:24:02+09:00 Subject: Re: [OT] Re: Should StringIO support to_str ? Hal Fulton wrote: > Gavin Sinclair wrote: > > > Well, it may or may not be a platypus, but it's certainly a monotreme. > > That is only the second time I have heard that word, the first being > the song "Mammal" by They Might Be Giants. > On this musical theme: p 'monotreme'.sub(/(ono)(..)(e)/, '\3\2\1') daz -- Could I just take this opportunity to say that the default open mode for StringIO is 'r+' _not_ 'w+' ? 'w+' would empty a string given to StringIO.new(string, 'w+'). Apologies for going [On Topic] in an [OT] thread.