Remove items from a list
Tor Iver Wilhelmsen
tor.iver.wilhelmsen at broadpark.no
Wed Sep 8 04:23:01 EDT 2004
More information about the Python-list mailing list
Wed Sep 8 04:23:01 EDT 2004
- Previous message (by thread): Remove items from a list
- Next message (by thread): Remove items from a list
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Stan Cook" <scook at elp.rr.com> writes: > for each in _dbases: > if each[-4:] <> ".dbf": List comprehension to the rescue! _dbases = [each for each in _dbases if each[-4:] == ".dbf"]
- Previous message (by thread): Remove items from a list
- Next message (by thread): Remove items from a list
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list