rshepard-at-appl-ecosys.com wrote:
> On 2007-02-10, [EMAIL PROTECTED] wrote:
> 
>>       if item == selName:
> 
>   Slicing doesn't seem to do anything -- if I've done it correctly. I
> changed the above to read,
> 
>       if item[2:-2] == selName:
> 
> but the output's the same.
> 
> Rich

Use the interpreter to test things:

a="(u'ground water',)"

a[2:-2]
"'ground water'"

a[3:-3]
'ground water'

That is what you are looking for.

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

Reply via email to