On Fri, Jul 18, 2008 at 3:50 AM, David M. Kaplan <[EMAIL PROTECTED]> wrote:
>> I would probably write a cbook method is_sequence_of_strings and just >> call that since it will be more readable and reusable... >> > > Method added to cbook. This method will return true on a string, which is probably not what you want In [46]: is_sequence_of_strings('jdh was here') Out[46]: True My original example included an additional check on is_string_like(obj). If you want to optionally support a string as a sequence of strings, I think we might need a kwarg to make this explicit. JDH ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel