Re: create lowercase strings in lists - was: (No subject)
From: Mark Devine (markdevine_at_eircom.net)
Date: 12/16/04
- Next message: Steve Holden: "Re: ".>>>" is a good idea! (OT, was: Re: do you master list comprehensions?)"
- Previous message: Peter Hansen: "Re: lies about OOP"
- Maybe in reply to: Diez B. Roggisch: "create lowercase strings in lists - was: (No subject)"
- Next in thread: Steve Holden: "Re: create lowercase strings in lists - was: (No subject)"
- Reply: Steve Holden: "Re: create lowercase strings in lists - was: (No subject)"
- Reply: Mike Meyer: "Re: create lowercase strings in lists - was: (No subject)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: python-list@python.org Date: Thu, 16 Dec 2004 17:02:30 +0000
Sorry for not putting a subject in the last e-mail. The function lower suited my case exactly. Here however is my main problem:
Given that my new list is :
[class-map match-all cmap1', 'match ip any', 'class-map match-any cmap2', 'match any', 'policy-map policy1', 'class cmap1', 'policy-map policy2', 'service-policy policy1', 'class cmap2']
Each element in my new list could appear in any order together within another larger list (list1) and I want to count how many matches occur. For example the larger list could have an element 'class-map cmap2 (match any)' and I want to match that but if only 'class-map match-any' or 'class-map cmap2' appears I don't want it to match.
Can anybody help?
Is my problem clearly stated?
"Diez B. Roggisch" <deetsNOSPAM@web.de> wrote:
>
> Helpful subjects help....
>
> commands = [c.lower() for c in commands]
>
> --
> Regards,
>
> Diez B. Roggisch
> --
> http://mail.python.org/mailman/listinfo/python-list
>
_________________________________________________________________
Sign up for eircom broadband now and get a free two month trial.*
Phone 1850 73 00 73 or visit http://home.eircom.net/broadbandoffer
- Next message: Steve Holden: "Re: ".>>>" is a good idea! (OT, was: Re: do you master list comprehensions?)"
- Previous message: Peter Hansen: "Re: lies about OOP"
- Maybe in reply to: Diez B. Roggisch: "create lowercase strings in lists - was: (No subject)"
- Next in thread: Steve Holden: "Re: create lowercase strings in lists - was: (No subject)"
- Reply: Steve Holden: "Re: create lowercase strings in lists - was: (No subject)"
- Reply: Mike Meyer: "Re: create lowercase strings in lists - was: (No subject)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|