Re: String compare question

2008-02-25 Thread Gary Herron
Robert Dailey wrote: Hi, Currently I have the following code: ignored_dirs = ( r.\boost\include ) You expect this is creating a tuple (or so I see from your in test in the following code), but in fact the parenthesis do *not* make a tuple. If you look at ignored_dirs, you'll find

Re: String compare question

2008-02-25 Thread Robert Dailey
On Mon, Feb 25, 2008 at 10:49 AM, Gary Herron [EMAIL PROTECTED] wrote: You expect this is creating a tuple (or so I see from your in test in the following code), but in fact the parenthesis do *not* make a tuple. If you look at ignored_dirs, you'll find it's just a string. It's the presence

Re: String compare question

2008-02-25 Thread Tim Chase
ignored_dirs = ( r.\boost\include, # It's that comma that makes this a tuple. ) Thanks for reminding me of this. I always forget that! Now that it is correctly doing *only* whole string matches, what if I want to make it do a substring compare to each string in my ignored_dirs

Re: String compare question

2008-02-25 Thread Robert Dailey
Thanks for your help. I knew of a way to solve this issue, but being a C++ programmer I tend to think of the expanded solutions for things. I wasn't sure if there was a more compact solution for python. Thanks again! On Mon, Feb 25, 2008 at 11:27 AM, Tim Chase [EMAIL PROTECTED] wrote: