iterating through lists to delete elements
Lance.Ellinghaus at eConnections.com
Lance.Ellinghaus at eConnections.com
Thu Aug 9 17:19:03 EDT 2001
As you will learn through the years as a programmer, there is normally more than one way to do
anything in software. It becomes a personal choice based on previous programming and personal
philosophy.
--
Lance Ellinghaus
Phone: 940-466-7251
Pager: 800-226-4526 or lellinghaus at imcingular.com
Sr. Architect - eConnections, Inc.
"Joseph A. Knapka"
<jknapka at earthlink To: python-list at python.org
.net> cc:
Sent by: Subject: Re: iterating through lists to delete elements
python-list-admin@
python.org
08/09/01 02:49 PM
Bjorn Pettersen wrote:
>
> > From: Mark Robinson [mailto:m.1.robinson at herts.ac.uk]
> >
> > Can anyone advise me the best way to iterate through a list
> > and deleting
> > elements that don't meet a certain criteria.
>
> You can use either filter or list comprehensions:
So it seems that (shudder) There's More Than One
Way To Do It. Isn't there supposed to be one (obvious)
way?
-- Joe Knapka
"You know how many remote castles there are along the gorges? You
can't MOVE for remote castles!" -- Lu Tze re. Uberwald
// Linux MM Documentation in progress:
// http://home.earthlink.net/~jknapka/linux-mm/vmoutline.html
2nd Lbl A + 1 = 2nd Pause 2nd Prt GTO 2 R/S
--
http://mail.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list