From: Eric Hodel Date: 2005-10-26T01:46:32+09:00 Subject: Re: Comparing Classes with Case ? On Oct 25, 2005, at 9:09 AM, Brian Schr�der wrote: > On 25/10/05, Christophe Grandsire > wrote: > Just throwing in that it would not be a "BIG LOSS", not even a _big > loss_ or a big loss, because you nearly never should test for the > class of an object. [snip example] StringIO vs IO is the best example of this. Except for a few methods (like grabing the file descriptor) a StringIO behaves exactly like any IO. I use this when testing things that interact with IO objects. A StringIO feels much better than a Tempfile. -- Eric Hodel - drbrain@segment7.net - http://segment7.net FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04