Carsten Haese wrote:
> On Wed, 2007-09-26 at 15:13 -0300, Pablo Ziliani wrote:
>> Carsten Haese wrote:
>>> Unfortunately, that also matches margarine, mayonnaise, and octopus,
>>> just to name a few ;-)
>> (and so does the solution you sent before :)
> 
> No, it doesn't.
> 
>>>> s = set(['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug',
> ... 'sep', 'oct', 'nov', 'dec'])
>>>> 'margarine' in s
> False
>>>> 'mayonnaise' in s
> False
>>>> 'octopus' in s
> False
> 
>> This is fine IMO since the OP didn't specify the opposite.
> 
> True, but my crystal ball tells me that the OP wants exact matches.
> (Extrapolating from another post made by the OP earlier today, I'm
> guessing he has a list of column names to include in an SQL "order by"
> clause, and he wants to check them for validity first.)
> 
Well, as somebody else already pointed out, the OP's query was 
completely misconceived in the first place, and he would have been 
better recasting it in a more natural way.

However, I am not going to claim that my psychic powers are clearly 
superior to yours ...

regards
  Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC/Ltd           http://www.holdenweb.com
Skype: holdenweb      http://del.icio.us/steve.holden

Sorry, the dog ate my .sigline

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to